-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
Hey guys,
This is a repeat of: https://github.com/mongoid/mongoid/issues/819
This issue was fixed: https://github.com/mongoid/mongoid/pull/818 ... however, it has reappeared in the current master.
Example:
class Image
include Mongoid::Document
field :blah
end
class Another
include Mongoid::Document
field :image, :type => Image
end
This will error and return: <...snip...> /gems/mongoid-ede2aac548ee/lib/mongoid/document.rb:126:in `initialize': wrong number of arguments (2 for 1) (ArgumentError)