Class: BeetleReporter::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionView::RecordIdentifier, Pagy::Backend
Defined in:
app/controllers/beetle_reporter/application_controller.rb

Direct Known Subclasses

HomeController, ReportsController

Instance Method Summary collapse

Instance Method Details

#current_userObject



7
8
9
# File 'app/controllers/beetle_reporter/application_controller.rb', line 7

def current_user
  main_app.scope.request.env['warden']&.user
end