method

initialize_store_attribute

rails latest stable - Class: ActiveRecord::Store

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

initialize_store_attribute(store_attribute)
private

No documentation available.

# File activerecord/lib/active_record/store.rb, line 117
      def initialize_store_attribute(store_attribute)
        attribute = send(store_attribute)
        unless attribute.is_a?(ActiveSupport::HashWithIndifferentAccess)
          attribute = IndifferentCoder.as_indifferent_hash(attribute)
          send :"#{store_attribute}=", attribute
        end
        attribute
      end