class ActiveRecord::Store::HashAccessor
:nodoc:
def self.prepare(object, attribute)
def self.prepare(object, attribute) object.public_send :"#{attribute}=", {} unless object.send(attribute) end
def self.read(object, attribute, key)
def self.read(object, attribute, key) prepare(object, attribute) object.public_send(attribute)[key] end
def self.write(object, attribute, key, value)
def self.write(object, attribute, key, value) prepare(object, attribute) object.public_send(attribute)[key] = value if value != read(object, attribute, key) end