Sha256: 428b9ec39ba52fda0cb3a06cfd9474daf4e0e1d3482ae714a526bbe94c425e8d

Contents?: true

Size: 359 Bytes

Versions: 34

Compression:

Stored size: 359 Bytes

Contents

# Sample plugin controller
class ExampleController < ApplicationController
  unloadable

  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
    @project=Project.find(params[:id])
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.38 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.37 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.11 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.10 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.36 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.34 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.09 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.07 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.06 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.05 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.04 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.03 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.33 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.02 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.1.01 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.29 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.28 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.27 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb
redmine_extensions-0.0.24 spec/redmine/extra/sample_plugin/app/controllers/example_controller.rb