Files
Redmine/extra/sample_plugin/app/controllers/example_controller.rb
Go MAEDA cfd49183b0 Remove 'unloadable' from bundled sample plugin (#27963).
Patch by Mischa The Evil.


git-svn-id: http://svn.redmine.org/redmine/trunk@17170 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-01-10 08:33:42 +00:00

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