Module: InitializesCurrentUserMode

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController, Oauth::ApplicationsController, Oauth::AuthorizationsController, OmniauthCallbacksController
Defined in:
app/controllers/concerns/initializes_current_user_mode.rb

Instance Method Summary collapse

Instance Method Details

#current_user_modeObject


10
11
12
# File 'app/controllers/concerns/initializes_current_user_mode.rb', line 10

def current_user_mode
  @current_user_mode ||= Gitlab::Auth::CurrentUserMode.new(current_user)
end