-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathinit.rb
More file actions
23 lines (19 loc) · 759 Bytes
/
init.rb
File metadata and controls
23 lines (19 loc) · 759 Bytes
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.configuration.to_prepare do
unless Project.included_modules.include? RedminePeriodictask::ProjectPatch
Project.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 '6.1.2'
url 'https://github.com/jperelli/Redmine-Periodic-Task/'
author_url 'https://jperelli.com.ar/'
project_module :periodictask do
permission :periodictask, { periodictask: %i[index edit] }
end
menu :project_menu, :periodictask, { controller: 'periodictask', action: 'index' },
caption: 'Periodic Task', after: :settings, param: :project_id
end