Class: Account::ApplicationController
- Inherits:
-
Tang::ApplicationController
- Object
- ApplicationController
- Tang::ApplicationController
- Account::ApplicationController
- Defined in:
- app/controllers/tang/account/application_controller.rb
Direct Known Subclasses
CardsController, CouponsController, ReceiptsController, SubscriptionsController
Instance Method Summary collapse
Instance Method Details
#current_customer ⇒ Object
10 11 12 |
# File 'app/controllers/tang/account/application_controller.rb', line 10 def current_customer @current_customer end |
#ensure_customer ⇒ Object
5 6 7 8 |
# File 'app/controllers/tang/account/application_controller.rb', line 5 def ensure_customer authenticate_user! if self.respond_to?(:authenticate_user!) @current_customer = current_user end |