method
write
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Store::HashAccessor
write(object, attribute, key, value)public
No documentation available.
# File activerecord/lib/active_record/store.rb, line 147
def self.write(object, attribute, key, value)
prepare(object, attribute)
if value != read(object, attribute, key)
object.public_send :"#{attribute}_will_change!"
object.public_send(attribute)[key] = value
end
end