-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
32 lines (25 loc) · 1008 Bytes
/
init.rb
File metadata and controls
32 lines (25 loc) · 1008 Bytes
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
29
30
31
32
require 'redmine'
require 'dispatcher'
Dispatcher.to_prepare :chiliproject_clockability do
require_dependency 'timelog_controller'
unless TimelogController.included_modules.include? Clockability::TimelogControllerPatch
TimelogController.send(:include, Clockability::TimelogControllerPatch)
end
require_dependency 'issues_controller'
unless IssuesController.included_modules.include? Clockability::IssuesControllerPatch
IssuesController.send(:include, Clockability::IssuesControllerPatch)
end
require_dependency 'project'
unless Project.included_modules.include? Clockability::ProjectPatch
Project.send(:include, Clockability::ProjectPatch)
end
end
Redmine::Plugin.register :chiliproject_clockability do
name 'Chiliproject Clockability plugin'
author 'Nicolas Paez'
description 'This plugin implements integration with Clockability.'
version '1.0.0'
url 'http://www.tipit.net/about'
end
require 'clockability/view_welcome_index_hook'
require 'clockability/hooks'