-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:
I have a container model with a number of associations but this model has no any declared fields. When a try to create it:
MymodelClass.create
a have an error:
ArgumentError: wrong number of arguments (0 for 1) in
mongoid-2.0.0.beta9/lib/mongoid/associations/references_many.rb:41:in `create'
so i must pass an empty hash like this:
MymodelClass.create({})