forked from Restream/redmine_digest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
23 lines (18 loc) · 773 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
require 'redmine'
Rails.application.paths["app/overrides"] ||= []
Rails.application.paths["app/overrides"] << File.expand_path("../app/overrides", __FILE__)
ActionDispatch::Callbacks.to_prepare do
require 'redmine_digest'
end
Redmine::Plugin.register :redmine_digest do
name 'Redmine Digest Plugin'
description 'This plugin enables you to send daily/weekly/monthly digests.'
author 'Undev'
version '1.0.9'
url 'https://github.com/Undev/redmine_digest'
requires_redmine :version_or_higher => '2.2'
requires_redmine_plugin :redmine__select2, :version_or_higher => '1.0.1'
permission :manage_digest_rules, { :digest_rules => [:new, :create, :edit, :update] },
:public => true,
:require => :loggedin
end