Skip to content

Commit

Permalink
Don't autoload ActionController::Base (wait for Rails to load)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dantemss committed Oct 8, 2024
1 parent 5b9df5b commit 636023f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fine_print/action_controller/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ def fine_print_skip(*names)
end
end

::ActionController::Base.send :include, FinePrint::ActionController::Base
ActiveSupport.on_load(:action_controller_base) do
::ActionController::Base.send :include, FinePrint::ActionController::Base
end

0 comments on commit 636023f

Please sign in to comment.