Module: Carter
- Defined in:
- lib/carter/cart.rb,
lib/carter/engine.rb,
lib/carter/cartable.rb,
lib/carter/initializer.rb,
lib/carter/state_machine.rb,
lib/carter/errors/setup_error.rb,
lib/carter/controller_resource.rb,
lib/carter/controller_additions.rb,
lib/carter/active_record/extensions.rb,
lib/generators/carter/install_generator.rb,
lib/generators/carter/migration_generator.rb,
lib/carter/errors/multiple_cart_items_not_allowed.rb
Defined Under Namespace
Modules: ActiveRecord, Cart, ControllerAdditions, Generators, StateMachine Classes: ControllerResource, Engine, Initializer, MultipleCartItemsNotAllowed, Settings, SetupError
Class Method Summary collapse
-
.settings ⇒ Object
The Settings instance used to configure the Carter environment.
- .settings=(settings) ⇒ Object
Class Method Details
.settings ⇒ Object
The Settings instance used to configure the Carter environment
4 5 6 7 8 |
# File 'lib/carter/initializer.rb', line 4 def settings @@settings rescue raise SetupError, "You must create the Carter settings using the Carter::Initializer.setup method" end |
.settings=(settings) ⇒ Object
10 11 12 |
# File 'lib/carter/initializer.rb', line 10 def settings=(settings) @@settings = settings end |