Class: ActiveRecord::Store::IndifferentHashAccessor
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
HashAccessor
|
|
Instance Chain:
self,
HashAccessor
|
|
Inherits: |
ActiveRecord::Store::HashAccessor
|
Defined in: | activerecord/lib/active_record/store.rb |
Class Method Summary
Class Method Details
.prepare(object, store_attribute)
[ GitHub ]# File 'activerecord/lib/active_record/store.rb', line 254
def self.prepare(object, store_attribute) attribute = object.send(store_attribute) unless attribute.is_a?(ActiveSupport::HashWithIndifferentAccess) attribute = IndifferentCoder.as_indifferent_hash(attribute) object.public_send :"#{store_attribute}=", attribute end attribute end