forked from a1exsh/redmine_involvement_filter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.rb
20 lines (17 loc) · 575 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'redmine'
Redmine::Plugin.register :redmine_involvement_filter do
name 'Redmine Issue Involvement Filter plugin'
author 'Alex Shulgin <ash@commandprompt.com>'
description 'A plugin to filter out issues in which the current user is involved.'
version '0.2.0'
# url 'http://example.com/path/to/plugin'
# author_url 'http://example.com/about'
end
prepare_block = Proc.new do
Query.send(:include, RedmineInvolvementFilter::QueryPatch)
end
if Rails.env.development?
ActionDispatch::Reloader.to_prepare { prepare_block.call }
else
prepare_block.call
end