Method: ActiveRecord::Store::ClassMethods#store
- Defined in:
- activerecord/lib/active_record/store.rb
#store(store_attribute, options = {}) ⇒ Object
106 107 108 109 110 |
# File 'activerecord/lib/active_record/store.rb', line 106 def store(store_attribute, = {}) coder = build_column_serializer(store_attribute, [:coder], Object, [:yaml]) serialize store_attribute, coder: IndifferentCoder.new(store_attribute, coder) store_accessor(store_attribute, [:accessors], **.slice(:prefix, :suffix)) if .has_key? :accessors end |