mirror of
https://github.com/redmine/redmine.git
synced 2025-12-24 01:10:38 +01:00
Added a sample plugin.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@753 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
17
extra/sample_plugin/app/controllers/example_controller.rb
Normal file
17
extra/sample_plugin/app/controllers/example_controller.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# Sample plugin controller
|
||||
class ExampleController < ApplicationController
|
||||
layout 'base'
|
||||
before_filter :find_project, :authorize
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user