diff --git a/app/controllers/scimitar/application_controller.rb b/app/controllers/scimitar/application_controller.rb index 7cb7488..e9e4c71 100644 --- a/app/controllers/scimitar/application_controller.rb +++ b/app/controllers/scimitar/application_controller.rb @@ -9,10 +9,6 @@ class ApplicationController < ActionController::Base before_action :add_mandatory_response_headers before_action :authenticate - if Scimitar.engine_configuration.application_controller_mixin - include Scimitar.engine_configuration.application_controller_mixin - end - # ========================================================================= # PROTECTED INSTANCE METHODS # ========================================================================= @@ -153,5 +149,8 @@ def authenticated? return result end + if Scimitar.engine_configuration.application_controller_mixin + include Scimitar.engine_configuration.application_controller_mixin + end end end