Skip to content

Commit

Permalink
move mixin include to the bottom of the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hrtshu committed Oct 18, 2024
1 parent 9b4899c commit 2488878
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/scimitar/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
# =========================================================================
Expand Down Expand Up @@ -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

0 comments on commit 2488878

Please sign in to comment.