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, attribute)
[ GitHub ]# File 'activerecord/lib/active_record/store.rb', line 277
def self.prepare(object, attribute) store_object = object.public_send(attribute) unless store_object.is_a?(ActiveSupport::HashWithIndifferentAccess) store_object = IndifferentCoder.as_indifferent_hash(store_object) object.public_send :"#{attribute}=", store_object end store_object end