summaryrefslogtreecommitdiff
path: root/lib/gitlab/base_doorkeeper_controller.rb
blob: b78993aba306d50b6032f054ef2725f5fe4fe889 (plain)
1
2
3
4
5
6
7
8
9
10
# 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
    helper_method :can?
  end
end