Class: Account::ApplicationController

Inherits:
Tang::ApplicationController show all
Defined in:
app/controllers/tang/account/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#current_customerObject



10
11
12
# File 'app/controllers/tang/account/application_controller.rb', line 10

def current_customer
  @current_customer
end

#ensure_customerObject



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