view vendor/plugins/redmine_bibliography/init.rb @ 454:2f1a308c4c11 feature_36

Created the Projects - Publications relationship.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 13 Jun 2011 16:46:17 +0100
parents ad71d0604ac2
children 9761ee24f31d
line wrap: on
line source
require 'redmine'
require 'dispatcher'


# Patches to the Redmine core.

Dispatcher.to_prepare :redmine_model_dependencies do
  require_dependency 'project'

  unless Project.included_modules.include? Bibliography::ProjectPublicationsPatch
    Project.send(:include, Bibliography::ProjectPublicationsPatch)
  end
end

Redmine::Plugin.register :redmine_bibliography do
  name 'Redmine Bibliography plugin'
  author 'Chris Cannam, Luis Figueira'
  description 'This is a plugin for Redmine'
  version '0.0.1'
  url 'http://example.com/path/to/plugin'
  author_url 'http://example.com/about'
  
  permission :view_bibliography, :redmine_bibliography => :index

  menu :project_menu, :redmine_bibliography, {:controller  => 'publications', :action => 'index'}, :caption  => 'Bibliography', :after => :activity, :param => :project_id






end