method
write
v8.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 233
def self.write(object, attribute, key, value)
prepare(object, attribute)
object.public_send(attribute)[key] = value if value != read(object, attribute, key)
end