method
write_store_attribute
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::Store
write_store_attribute(store_attribute, key, value)protected
No documentation available.
# File activerecord/lib/active_record/store.rb, line 108
def write_store_attribute(store_attribute, key, value)
attribute = initialize_store_attribute(store_attribute)
if value != attribute[key]
send :"#{store_attribute}_will_change!"
attribute[key] = value
end
end