Skip to content

Commit

Permalink
Manage Mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
jibidus committed Nov 27, 2015
1 parent fd93059 commit 28d1770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/abstract_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def each_associated_children(object)
end
when :has_many
children = object.send(association.name)
yield(association, children)
yield(association, Array.new(children))
end
end
end
Expand Down

0 comments on commit 28d1770

Please sign in to comment.