lib/mongoid/enum.rb in mongoid-enum-i18n-0.2.3 vs lib/mongoid/enum.rb in mongoid-enum-i18n-0.2.5
- old
+ new
@@ -83,10 +83,10 @@
def define_value_scopes_and_accessors(field_name, values, options)
values.each do |value|
unless options[:scope].is_a?(FalseClass)
scope value, -> { where(field_name => value) }
end
- next if options[:accessors].is_a?(FalseClass)
+ next if options[:accessor].is_a?(FalseClass)
if options[:multiple]
define_array_accessor(field_name, value)
else
define_string_accessor(field_name, value)
end