changeset 1069:734fe0c6b3e4 bibplugin_cache

added projects_controller_patch (includes the publications helper to the projects controller) - forgot to add this file to version control in the last commit.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 21 Nov 2012 11:24:42 +0000
parents e11d8d13ebc5
children 858f042e8d11
files vendor/plugins/redmine_bibliography/lib/bibliography/projects_controller_patch.rb
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/plugins/redmine_bibliography/lib/bibliography/projects_controller_patch.rb	Wed Nov 21 11:24:42 2012 +0000
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+require_dependency 'projects_controller'
+
+module Bibliography
+    module ProjectsControllerPatch
+      def self.included(base)
+        base.send(:include, InstanceMethods)
+
+        base.class_eval do
+          unloadable
+
+          # reads the publications helper on the projects controller
+          helper :publications
+          include PublicationsHelper
+
+        end
+      end
+
+      module InstanceMethods
+
+      end
+
+    end
+end