Module: Carter::ControllerAdditions
- Defined in:
- lib/carter/controller_additions.rb
Overview
This module is automatically included into all controllers.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/carter/controller_additions.rb', line 21 def self.included(base) base.extend ClassMethods base.class_attribute :checking_out base.class_attribute :shopping base.class_attribute :has_cart_options base.helper_method :cart, :has_cart?, :shopper end |