summaryrefslogtreecommitdiff
path: root/lib/gitlab/base_doorkeeper_controller.rb
blob: 0f370850b5b6c0122681e3edbe8d8950ab2ea540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# This is a base controller for doorkeeper.
# It adds the `can?` helper used in the views.
module Gitlab
  class BaseDoorkeeperController < ActionController::Base
    include Gitlab::Allowable
    include EnforcesTwoFactorAuthentication

    helper_method :can?
  end
end