Save a root in dm-is-tree yield an validation error: @errors={:parent_id=>["Parent must not be blank"]}
that's because root(s) node parent_id is NULL, but dm-is-tree calls "belongs_to :parent" doesn't carry :required => false option. http://github.com/drove/dm-more/blob/master/dm-is-tree/lib/dm-is-tree/is/tree.rb#L74 assc_options = { :model => options[:model], :child_key => Array(options [:child_key]) } should be: assc_options = { :model => options[:model], :child_key => Array(options [:child_key]) , :required => false}
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.