annotate .svn/pristine/79/792291627fe731edc6c641f7c6fd4a8dbaf670c1.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
rev   line source
Chris@1295 1 # Sample plugin controller
Chris@1295 2 class ExampleController < ApplicationController
Chris@1295 3 unloadable
Chris@1295 4
Chris@1295 5 layout 'base'
Chris@1295 6 before_filter :find_project, :authorize
Chris@1295 7 menu_item :sample_plugin
Chris@1295 8
Chris@1295 9 def say_hello
Chris@1295 10 @value = Setting.plugin_sample_plugin['sample_setting']
Chris@1295 11 end
Chris@1295 12
Chris@1295 13 def say_goodbye
Chris@1295 14 end
Chris@1295 15
Chris@1295 16 private
Chris@1295 17 def find_project
Chris@1295 18 @project=Project.find(params[:id])
Chris@1295 19 end
Chris@1295 20 end