You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

example_controller.rb 345B

123456789101112131415161718
  1. # Sample plugin controller
  2. class ExampleController < ApplicationController
  3. layout 'base'
  4. before_action :find_project, :authorize
  5. menu_item :sample_plugin
  6. def say_hello
  7. @value = Setting.plugin_sample_plugin['sample_setting']
  8. end
  9. def say_goodbye
  10. end
  11. private
  12. def find_project
  13. @project=Project.find(params[:id])
  14. end
  15. end