method

store_accessor_for

Importance_0
store_accessor_for(store_attribute) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/store.rb, line 219
      def store_accessor_for(store_attribute)
        type_for_attribute(store_attribute).tap do |type|
          unless type.respond_to?(:accessor)
            raise ConfigurationError, "the column '#{store_attribute}' has not been configured as a store. Please make sure the column is declared serializable via 'ActiveRecord.store' or, if your database supports it, use a structured column type like hstore or json."
          end
        end.accessor
      end
Register or log in to add new notes.