-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.rb
More file actions
25 lines (22 loc) · 694 Bytes
/
init.rb
File metadata and controls
25 lines (22 loc) · 694 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
require 'redmine'
unless Redmine::Plugin.registered_plugins.keys.include?(:issue_query)
Redmine::Plugin.register :issue_query do
name 'Issue query operators plugin'
author 'Nikita Vasiliev'
author_url 'mailto:sharpyfox@gmail.com'
description 'Redmine plugin which add filter by issues id'
version '0.0.3'
requires_redmine :version_or_higher => '1.3.0'
end
end
# Including dispatcher.rb in case of Rails 2.x
require 'dispatcher' unless Rails::VERSION::MAJOR >= 3
if Rails::VERSION::MAJOR >= 3
ActionDispatch::Callbacks.to_prepare do
require 'issue_query_patch'
end
else
Dispatcher.to_prepare :issue_query do
require 'issue_query_patch'
end
end