Class: Mongoid::Criterion::Selector
- Inherits:
-
Hash
- Object
- Hash
- Mongoid::Criterion::Selector
- Defined in:
- lib/mongoid/i18n/criterion/selector.rb
Instance Method Summary collapse
Instance Method Details
#[]=(key, value) ⇒ Object
4 5 6 7 |
# File 'lib/mongoid/i18n/criterion/selector.rb', line 4 def []=(key, value) key = "#{key}.#{::I18n.locale}" if fields[key.to_s].try(:type) == Mongoid::I18n::LocalizedField super end |