mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 22:36:02 +01:00
Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@17170 e93f8b46-1217-0410-a6f0-8f06a7374b81
19 lines
345 B
Ruby
19 lines
345 B
Ruby
# Sample plugin controller
|
|
class ExampleController < ApplicationController
|
|
layout 'base'
|
|
before_action :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
|