forked from alexgarbarev/issue_hot_buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
29 lines (25 loc) · 880 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
29
require 'redmine'
if Rails::VERSION::MAJOR < 3
require 'dispatcher'
object_to_prepare = Dispatcher
else
object_to_prepare = Rails.configuration
end
object_to_prepare.to_prepare do
require File.dirname(__FILE__) + '/lib/issues_controller_patch.rb'
IssuesController.send(:include, IssueHotButtons::IssuesControllerPatch)
end
class Hooks < Redmine::Hook::ViewListener
render_on :view_issues_show_details_bottom,
:partial => 'hot_buttons/assets',
:layout => false
end
Redmine::Plugin.register :issue_hot_buttons do
name 'Issue Hot Buttons'
author 'Mike Kolganov, Thumbtack Inc.'
description 'Plugin for Redmine that add buttons for often used actions to issue page'
version '0.4.4'
url 'http://thumbtack-technology.github.com/redmine-issue-hot-buttons'
#author_url 'mailto:[email protected]'
settings :partial => 'hot_buttons/settings'
end