Method: ActiveRecord::Store::HashAccessor.write

Defined in:
lib/active_record/store.rb

.write(object, attribute, key, value) ⇒ Object



229
230
231
232
# File 'lib/active_record/store.rb', line 229

def self.write(object, attribute, key, value)
  prepare(object, attribute)
  object.public_send(attribute)[key] = value if value != read(object, attribute, key)
end