method
store
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Store::ClassMethods
store(store_attribute, options = {})public
No documentation available.
# File activerecord/lib/active_record/store.rb, line 106
def store(store_attribute, options = {})
coder = build_column_serializer(store_attribute, options[:coder], Object, options[:yaml])
serialize store_attribute, coder: IndifferentCoder.new(store_attribute, coder)
store_accessor(store_attribute, options[:accessors], **options.slice(:prefix, :suffix)) if options.has_key? :accessors
end