Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Concerns::Auth, Concerns::FoodcoopScope, Concerns::Locale
Defined in:
app/controllers/application_controller.rb

Class Method Summary collapse

Class Method Details

.currentObject

Returns the controller handling the current request.


16
17
18
# File 'app/controllers/application_controller.rb', line 16

def self.current
  Thread.current[:application_controller]
end