instance method
write_store_attribute
Ruby on Rails 4.0.13
Since v4.0.13Signature
write_store_attribute(store_attribute, key, value)
No documentation comment.
Parameters
-
store_attributereq -
keyreq -
valuereq
Source
# File activerecord/lib/active_record/store.rb, line 120
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
Defined in activerecord/lib/active_record/store.rb line 120
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Store