When I create instance of class, Error is raised NameError: undefined method 'options' for class 'Product'.
DB: MongoDB 3.6
Class Product
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Attributes::Dynamic
field :options, type: Hash, default: {}
end
gem: mongoid (6.1.1)
NOTE: It works well when I change field name to option
or anything else, only options Fails. TIA