redmine_landing_page/init.rb
2011-12-22 17:22:33 +02:00

27 lines
859 B
Ruby

require 'redmine'
Redmine::Plugin.register :redmine_landing_page do
name 'Redmine Landing Page plugin'
author 'Igor Zubkov'
description 'Redmine Landing Page plugin'
version '0.0.1'
url 'https://github.com/biow0lf/redmine_landing_page'
author_url 'https://github.com/biow0lf'
end
require 'dispatcher'
Dispatcher.to_prepare :redmine_contracts do
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineLandingPage::Patches::ProjectsControllerPatch)
require_dependency 'project'
Project.send(:include, RedmineLandingPage::Patches::ProjectPatch)
require 'principal'
User.send(:include, RedmineLandingPage::Patches::UserPatch)
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'