comparison vendor/plugins/redmine_bibliography/init.rb @ 1070:858f042e8d11 bibplugin_cache

Created a patch for the ProjectsHelper to replace the one previously created for the Projects controller.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 21 Nov 2012 14:42:12 +0000
parents e11d8d13ebc5
children fe32745aaa3d
comparison
equal deleted inserted replaced
1069:734fe0c6b3e4 1070:858f042e8d11
23 23
24 unless Mailer.included_modules.include? Bibliography::MailerPatch 24 unless Mailer.included_modules.include? Bibliography::MailerPatch
25 Mailer.send(:include, Bibliography::MailerPatch) 25 Mailer.send(:include, Bibliography::MailerPatch)
26 end 26 end
27 27
28 unless ProjectsController.included_modules.include?(Bibliography::ProjectsControllerPatch) 28 unless ProjectsHelper.included_modules.include?(Bibliography::ProjectsHelperPatch)
29 ProjectsController.send(:include, Bibliography::ProjectsControllerPatch) 29 ProjectsHelper.send(:include, Bibliography::ProjectsHelperPatch)
30 end 30 end
31
32 end 31 end
33 32
34 33
35 # Plugin Info 34 # Plugin Info
36 Redmine::Plugin.register :redmine_bibliography do 35 Redmine::Plugin.register :redmine_bibliography do