0f593b1c57
Since we only need the `can?` view helpers there, it's better to include those in a separate controller. If we inherit from `ApplicationController` we also need to deal with authentication, that needs to be done in some, but not all doorkeeper controllers.
8 lines
227 B
Ruby
8 lines
227 B
Ruby
# 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
|