summaryrefslogtreecommitdiffstats
path: root/extra/sample_plugin/app/controllers/example_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sample_plugin/app/controllers/example_controller.rb')
-rw-r--r--extra/sample_plugin/app/controllers/example_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/extra/sample_plugin/app/controllers/example_controller.rb b/extra/sample_plugin/app/controllers/example_controller.rb
index 8d63206af..dbc271a1b 100644
--- a/extra/sample_plugin/app/controllers/example_controller.rb
+++ b/extra/sample_plugin/app/controllers/example_controller.rb
@@ -1,20 +1,20 @@
# Sample plugin controller
class ExampleController < ApplicationController
unloadable
-
- layout 'base'
+
+ 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
+ def find_project
@project=Project.find(params[:id])
end
end