annotate .svn/pristine/79/792291627fe731edc6c641f7c6fd4a8dbaf670c1.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
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