Class: Kuroko2ReadOnly::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
RequestHandler
Defined in:
app/controllers/kuroko2_read_only/application_controller.rb

Direct Known Subclasses

SettingsController

Instance Method Summary collapse

Instance Method Details

#current_userObject



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

def current_user
  Kuroko2::User.active.find(session[:user_id])
end