Class: Auth::BaseController

Inherits:
DeviseController
  • Object
show all
Defined in:
app/controllers/auth/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#devise_mappingObject

Attempt to find the mapped route for devise based on request path



7
8
9
# File 'app/controllers/auth/base_controller.rb', line 7

def devise_mapping
  @devise_mapping ||= Devise.mappings[:account]
end