forked from biow0lf/redmine_landing_page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
28 lines (22 loc) · 976 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'redmine'
Redmine::Plugin.register :redmine_landing_page do
name 'Redmine Landing Page plugin'
author 'Igor Zubkov'
description 'Redmine Landing Page plugin'
version '0.1.0'
url 'https://github.com/biow0lf/redmine_landing_page'
author_url 'https://github.com/biow0lf'
end
ActionDispatch::Callbacks.to_prepare do
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineLandingPage::Patches::ProjectsControllerPatch)
require_dependency 'project'
Project.send(:include, RedmineLandingPage::Patches::ProjectPatch)
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'