forked from bterlson/redmine-status-updates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
29 lines (23 loc) · 1.02 KB
/
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
# Redmine status updates plugin
require 'redmine'
require 'dispatcher'
require 'status_user_patch'
Dispatcher.to_prepare do
User.send(:include, ::Plugin::Status::User)
ActiveRecord::Base.observers << :status_observer
end
require 'status_layout_hooks'
require 'status_project_hooks'
require 'status_welcome_hooks'
Redmine::Plugin.register :redmine_status do
name 'Redmine Status Updates'
author 'Brian Terlson'
description 'Allow users to add small status updates about what they are working on or finished or what-have-you.'
version '0.1.1'
project_module :statuses do
permission :view_statuses, {:statuses => [:index, :tagged, :tag_cloud, :search], :status_notifications => [:edit, :update]}
permission :create_statuses, {:statuses => [:new, :create]}
end
menu :top_menu, "Status Updates", :controller => 'statuses', :action => 'index', :id => nil, :caption => :redmine_status_title
menu :project_menu, "Status Updates", :controller => 'statuses', :action => 'index', :caption => :redmine_status_title
end