method
store_accessor_for
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Store
store_accessor_for(store_attribute)private
No documentation available.
# File activerecord/lib/active_record/store.rb, line 225
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