Mercurial > hg > soundsoftware-site
comparison extra/sample_plugin/init.rb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
1 # Redmine sample plugin | 1 Rails.logger.info 'Starting Example plugin for RedMine' |
2 require 'redmine' | |
3 | |
4 RAILS_DEFAULT_LOGGER.info 'Starting Example plugin for RedMine' | |
5 | 2 |
6 Redmine::Plugin.register :sample_plugin do | 3 Redmine::Plugin.register :sample_plugin do |
7 name 'Example plugin' | 4 name 'Example plugin' |
8 author 'Author name' | 5 author 'Author name' |
9 description 'This is a sample plugin for Redmine' | 6 description 'This is a sample plugin for Redmine' |
22 permission :view_meetings, {:meetings => [:index, :show]}, :require => :member | 19 permission :view_meetings, {:meetings => [:index, :show]}, :require => :member |
23 end | 20 end |
24 | 21 |
25 # A new item is added to the project menu | 22 # A new item is added to the project menu |
26 menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample' | 23 menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample' |
27 | 24 |
28 # Meetings are added to the activity view | 25 # Meetings are added to the activity view |
29 activity_provider :meetings | 26 activity_provider :meetings |
30 end | 27 end |