forked from ifad/redmine-portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
25 lines (21 loc) · 735 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
24
25
Redmine::Plugin.register :portfolio do
name 'Redmine portfolio'
author 'Lleir Borras Metje'
description 'This plugin presents a sort of projects in a portfolio page'
version '0.6.2'
url 'http://github.com/ifad/redmine-portfolio'
author_url 'http://github.com/lleirborras'
requires_redmine :version_or_higher => '2.4.0'
settings(:partial => 'portfolio/settings', :default => {
:enabled => true,
:public_access => false,
:title => 'Projects portfolio',
:name_attribute => 'Portfolio name',
:presence_attribute => 'In portfolio?',
:image_attribute => 'Portfolio image'
})
end
ActiveSupport::Reloader.to_prepare do
require 'project'
Project.send(:include, Portfolio::Redmine::Project)
end