redmine_landing_page/init.rb

29 lines
976 B
Ruby
Raw Normal View History

2011-12-20 15:25:56 +04:00
require 'redmine'
Redmine::Plugin.register :redmine_landing_page do
name 'Redmine Landing Page plugin'
author 'Igor Zubkov'
description 'Redmine Landing Page plugin'
2016-07-24 22:32:25 +03:00
version '0.1.1'
url 'https://github.com/biow0lf/redmine_landing_page'
author_url 'https://github.com/biow0lf'
2011-12-20 15:25:56 +04:00
end
2013-05-22 02:36:22 +04:00
ActionDispatch::Callbacks.to_prepare do
2011-12-20 19:47:28 +04:00
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineLandingPage::Patches::ProjectsControllerPatch)
require_dependency 'project'
Project.send(:include, RedmineLandingPage::Patches::ProjectPatch)
2011-12-23 20:27:05 +04:00
require_dependency 'principal'
User.send(:include, RedmineLandingPage::Patches::UserPatch)
2011-12-23 20:27:05 +04:00
require_dependency 'welcome_controller'
WelcomeController.send(:include, RedmineLandingPage::Patches::WelcomeControllerPatch)
2011-12-20 19:47:28 +04:00
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'