Skip to content

Commit 28d1770

Browse files
committed
Manage Mongoid
1 parent fd93059 commit 28d1770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rails_admin/abstract_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def each_associated_children(object)
9191
end
9292
when :has_many
9393
children = object.send(association.name)
94-
yield(association, children)
94+
yield(association, Array.new(children))
9595
end
9696
end
9797
end

0 commit comments

Comments
 (0)