lib/groupify/adapter/mongoid/model.rb in groupify-0.7.2 vs lib/groupify/adapter/mongoid/model.rb in groupify-0.8.0
- old
+ new
@@ -18,12 +18,10 @@
if (member_klass = opts.delete :default_members)
self.default_member_class = member_klass.to_s.classify.constantize
end
if (member_klasses = opts.delete :members)
- member_klasses.each do |member_klass|
- has_members(member_klass)
- end
+ has_members(member_klasses)
end
end
def acts_as_group_member(opts = {})
@group_class_name = opts[:group_class_name] || Groupify.group_class_name