diff vendor/plugins/redmine_bibliography/init.rb @ 1080:5bd8c86cfa6a issue_540

Makes the Publication model act as an activity; overloading the default ActivitiesController#index view in the Bibliography Plugin in order to differentiate Publications from the other event types. * Known issues: ** route to /activities is not working (only to /activity); ** publication cache needs to be implemented in the model, not in the helper; ** when a publication is added to n projects, n events are created (all with the same content).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Nov 2012 16:51:23 +0000
parents fe32745aaa3d
children 74407a04925c
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/init.rb	Wed Nov 21 15:58:12 2012 +0000
+++ b/vendor/plugins/redmine_bibliography/init.rb	Thu Nov 22 16:51:23 2012 +0000
@@ -51,4 +51,9 @@
   menu :project_menu, :publications, { :controller => 'publications', :action => 'index', :path => nil }, :after => :activity, :param => :project_id, :caption => Proc.new { Setting.plugin_redmine_bibliography['menu'] },
    :if => Proc.new { !Setting.plugin_redmine_bibliography['menu'].blank? }
 
+  activity_provider :publication, :class_name => 'Publication', :default => true
+
 end
+
+
+