-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
class Foo include Mongoid::Document end class Bar < Foo end class Top include Mongoid::Document embeds_many :foos end Top.new(foos: [Foo.new]).clone
Result:
NoMethodError (undefined method `localized_fields' for nil:NilClass)
- is caused by
-
MONGOID-4942 Use #discriminator_mapping attribue instead of class.name
- Closed
- links to