Welcome to mirror list, hosted at ThFree Co, Russian Federation.

initializes_current_user_mode.rb « concerns « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df7cea5c754d25a4349e808d674f694349767f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module InitializesCurrentUserMode
  extend ActiveSupport::Concern

  included do
    helper_method :current_user_mode
  end

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