Class: ActiveRecord::Store::HashAccessor
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | activerecord/lib/active_record/store.rb |
Class Method Summary
Class Method Details
.prepare(object, attribute)
[ GitHub ]# File 'activerecord/lib/active_record/store.rb', line 238
def self.prepare(object, attribute) object.public_send :"#{attribute}=", {} unless object.send(attribute) end
.read(object, attribute, key)
[ GitHub ]# File 'activerecord/lib/active_record/store.rb', line 228
def self.read(object, attribute, key) prepare(object, attribute) object.public_send(attribute)[key] end