method
write
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Store::HashAccessor
write(object, attribute, key, value)public
No documentation available.
# File activerecord/lib/active_record/store.rb, line 226
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