Module: Spree::Preferences

Defined in:
app/models/spree/preferences/configuration.rb,
app/models/spree/preferences/store.rb,
app/models/spree/preferences/preferable_class_methods.rb

Overview

This takes the preferrable methods and adds some syntatic sugar to access the preferences

class App < Configuration

preference :color, :string

end

a = App.new

setters: a.color = :blue a = :blue a.set :color = :blue a.preferred_color = :blue

getters: a.color a a.get :color a.preferred_color

Defined Under Namespace

Modules: Preferable, PreferableClassMethods Classes: Configuration, Store, StoreInstance