Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Include only once, in ApplicationController
Browse files Browse the repository at this point in the history
Compat with Rails 5 + Redmine 4.1.1 . Tested with Ruby 2.6.6 .
  • Loading branch information
marcelbonnet authored Mar 31, 2021
1 parent b9a5ac8 commit dace9c3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
ActiveSupport::Reloader.to_prepare do
require_dependency 'application_controller'
ApplicationController.send(:include, MaintenanceMode)
AttachmentsController.send(:include, MaintenanceMode)
end
elsif Rails::VERSION::MAJOR >= 3
ActionDispatch::Callbacks.to_prepare do
Expand Down

0 comments on commit dace9c3

Please sign in to comment.