debian-mirror-gitlab/lib/gitlab/base_doorkeeper_controller.rb
2020-08-18 19:51:02 +05:30

12 lines
303 B
Ruby

# 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