Mercurial > hg > soundsoftware-site
comparison extra/sample_plugin/app/controllers/example_controller.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 # Sample plugin controller | 1 # Sample plugin controller |
2 class ExampleController < ApplicationController | 2 class ExampleController < ApplicationController |
3 unloadable | 3 unloadable |
4 | 4 |
5 layout 'base' | 5 layout 'base' |
6 before_filter :find_project, :authorize | 6 before_filter :find_project, :authorize |
7 menu_item :sample_plugin | 7 menu_item :sample_plugin |
8 | 8 |
9 def say_hello | 9 def say_hello |
10 @value = Setting.plugin_sample_plugin['sample_setting'] | 10 @value = Setting.plugin_sample_plugin['sample_setting'] |
11 end | 11 end |
12 | 12 |
13 def say_goodbye | 13 def say_goodbye |
14 end | 14 end |
15 | 15 |
16 private | 16 private |
17 def find_project | 17 def find_project |
18 @project=Project.find(params[:id]) | 18 @project=Project.find(params[:id]) |
19 end | 19 end |
20 end | 20 end |