forked from jperelli/Redmine-Periodic-Task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
22 lines (18 loc) · 777 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
require 'redmine'
Rails.configuration.to_prepare do
unless Project.included_modules.include? RedminePeriodictask::ProjectPatch
Project.send(:include, RedminePeriodictask::ProjectPatch)
end
end
Redmine::Plugin.register :periodictask do
name 'Redmine Periodictask plugin'
author 'Julian Perelli'
description 'Plugin to create a task periodically by defining an interval'
version '4.1.0'
url 'https://github.com/jperelli/Redmine-Periodic-Task/'
author_url 'https://jperelli.com.ar/'
project_module :periodictask do
permission :periodictask, {:periodictask => [:index, :edit]}
end
menu :project_menu, :periodictask, { :controller => 'periodictask', :action => 'index' }, :caption => 'Periodic Task', :after => :settings, :param => :project_id
end