annotate .svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base @ 929:5f33065ddc4b redmine-1.3

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