Method: ActiveEntity::Store::ClassMethods#store

Defined in:
lib/active_entity/store.rb

#store(store_attribute, options = {}) ⇒ Object



104
105
106
107
# File 'lib/active_entity/store.rb', line 104

def store(store_attribute, options = {})
  serialize store_attribute, IndifferentCoder.new(store_attribute, options[:coder])
  store_accessor(store_attribute, options[:accessors], **options.slice(:prefix, :suffix)) if options.has_key? :accessors
end