Mercurial > hg > soundsoftware-site
annotate extra/sample_plugin/app/controllers/example_controller.rb @ 1516:b450a9d58aed redmine-2.4
Update to Redmine SVN revision 13356 on 2.4-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:28:31 +0100 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@0 | 1 # Sample plugin controller |
Chris@0 | 2 class ExampleController < ApplicationController |
Chris@0 | 3 unloadable |
Chris@1115 | 4 |
Chris@1115 | 5 layout 'base' |
Chris@0 | 6 before_filter :find_project, :authorize |
Chris@0 | 7 menu_item :sample_plugin |
Chris@1115 | 8 |
Chris@0 | 9 def say_hello |
Chris@0 | 10 @value = Setting.plugin_sample_plugin['sample_setting'] |
Chris@0 | 11 end |
Chris@0 | 12 |
Chris@0 | 13 def say_goodbye |
Chris@0 | 14 end |
Chris@1115 | 15 |
Chris@0 | 16 private |
Chris@1115 | 17 def find_project |
Chris@0 | 18 @project=Project.find(params[:id]) |
Chris@0 | 19 end |
Chris@0 | 20 end |