Module: Mongoid::Attributes::InstanceMethods

Defined in:
lib/monkeypatch_for_mongoid_1.9.rb

Instance Method Summary collapse

Instance Method Details

#[](field) ⇒ Object



14
15
16
# File 'lib/monkeypatch_for_mongoid_1.9.rb', line 14

def [](field)
  send(field)
end

#[]=(field, value) ⇒ Object



18
19
20
# File 'lib/monkeypatch_for_mongoid_1.9.rb', line 18

def []=(field, value)
  modify(field, send(field), value)
end