Specify base controller for Doorkeeper

This will make sure the `ApplicantionController#can?` method is
available for views rendering menus based on the current user's abilities.
This commit is contained in:
Bob Van Landuyt 2018-02-27 12:03:22 +01:00
parent 4371f84564
commit 417e3ba8e3
2 changed files with 4 additions and 0 deletions

View File

@ -103,4 +103,6 @@ Doorkeeper.configure do
# Some applications require dynamic query parameters on their request_uri
# set to true if you want this to be allowed
# wildcard_redirect_uri false
base_controller 'ApplicationController'
end

View File

@ -34,6 +34,8 @@ describe Oauth::AuthorizationsController do
end
context 'with valid params' do
render_views
it 'returns 200 code and renders view' do
get :new, params