comparison .svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 # Sample plugin controller
2 class ExampleController < ApplicationController
3 unloadable
4
5 layout 'base'
6 before_filter :find_project, :authorize
7 menu_item :sample_plugin
8
9 def say_hello
10 @value = Setting.plugin_sample_plugin['sample_setting']
11 end
12
13 def say_goodbye
14 end
15
16 private
17 def find_project
18 @project=Project.find(params[:id])
19 end
20 end