Skip to content

Commit

Permalink
fix biow0lf#18 - support for Redmine 5.x - Zeitwerk support
Browse files Browse the repository at this point in the history
  • Loading branch information
andreav committed Jun 4, 2022
1 parent b875061 commit 07db488
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
author_url 'https://github.com/biow0lf'
end

ActionDispatch::Callbacks.to_prepare do
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineLandingPage::Patches::ProjectsControllerPatch)
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineLandingPage::Patches::ProjectsControllerPatch)

require_dependency 'project'
Project.send(:include, RedmineLandingPage::Patches::ProjectPatch)
require_dependency 'project'
Project.send(:include, RedmineLandingPage::Patches::ProjectPatch)

require_dependency 'principal'
User.send(:include, RedmineLandingPage::Patches::UserPatch)
require_dependency 'principal'
User.send(:include, RedmineLandingPage::Patches::UserPatch)

require_dependency 'welcome_controller'
WelcomeController.send(:include, RedmineLandingPage::Patches::WelcomeControllerPatch)
end

require 'redmine_landing_page/hooks/view_projects_form_hook'
require 'redmine_landing_page/hooks/view_my_account_hook'
require 'redmine_landing_page/hooks/view_users_form_hook'
require_dependency 'welcome_controller'
WelcomeController.send(:include, RedmineLandingPage::Patches::WelcomeControllerPatch)

0 comments on commit 07db488

Please sign in to comment.