annotate .svn/pristine/79/792291627fe731edc6c641f7c6fd4a8dbaf670c1.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 # Sample plugin controller
Chris@1296 2 class ExampleController < ApplicationController
Chris@1296 3 unloadable
Chris@1296 4
Chris@1296 5 layout 'base'
Chris@1296 6 before_filter :find_project, :authorize
Chris@1296 7 menu_item :sample_plugin
Chris@1296 8
Chris@1296 9 def say_hello
Chris@1296 10 @value = Setting.plugin_sample_plugin['sample_setting']
Chris@1296 11 end
Chris@1296 12
Chris@1296 13 def say_goodbye
Chris@1296 14 end
Chris@1296 15
Chris@1296 16 private
Chris@1296 17 def find_project
Chris@1296 18 @project=Project.find(params[:id])
Chris@1296 19 end
Chris@1296 20 end