view .svn/pristine/d2/d24962e05eefa8c4a95f4bd86c0954dda018dde6.svn-base @ 1119:22d81bd0b62c redmine-2.2-integration

Deleted existing the embedded plugin and replaced it witgh redmine_embedded (same functionality, but upgraded to be compatible with Redmine 2.x).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Jan 2013 14:43:04 +0000
parents cbb26bc654de
children
line wrap: on
line source
# 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