Mercurial > hg > soundsoftware-site
diff .svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base Fri Feb 24 19:09:32 2012 +0000 @@ -0,0 +1,20 @@ +# Sample plugin controller +class ExampleController < ApplicationController + unloadable + + layout 'base' + before_filter :find_project, :authorize + menu_item :sample_plugin + + def say_hello + @value = Setting.plugin_sample_plugin['sample_setting'] + end + + def say_goodbye + end + +private + def find_project + @project=Project.find(params[:id]) + end +end