Mercurial > hg > soundsoftware-site
diff 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 diff
--- a/vendor/plugins/redmine_bibliography/init.rb Mon Jun 13 16:12:55 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/init.rb Mon Jun 13 16:46:17 2011 +0100 @@ -1,4 +1,16 @@ 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' @@ -11,6 +23,12 @@ permission :view_bibliography, :redmine_bibliography => :index menu :project_menu, :redmine_bibliography, {:controller => 'publications', :action => 'index'}, :caption => 'Bibliography', :after => :activity, :param => :project_id - + + + + + + end +