-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
31 lines (26 loc) · 989 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
26
27
28
29
30
31
require 'redmine'
require 's3_attachment/s3_send_file'
config.after_initialize do
ActiveRecord::Base.observers << :assumption_observer
ActiveRecord::Base.observers << :pm_dashboard_issue_observer
ActiveRecord::Base.observers << :risk_observer
end
Redmine::Plugin.register :pm_dashboard do
name 'Redmine Pm Dashboards plugin'
author 'Author name'
description 'This is a plugin for Redmine'
version '0.0.1'
project_module :pm_dashboards do
permission :list_dashboards, :pm_dashboards => :index
end
menu :project_menu,
:pm_dashboards,
{ :controller => 'pm_dashboards', :action => 'index' },
:caption=> 'PM Dashboard',
:after => :activity,
:param => :project_id
end
require File.dirname(__FILE__) + '/app/models/mailer_extn.rb'
require File.dirname(__FILE__) + '/app/models/project_extn.rb'
require File.dirname(__FILE__) + '/app/models/member_extn.rb'
require File.dirname(__FILE__) + '/app/models/user_extn.rb'