Revision 1069:734fe0c6b3e4
| vendor/plugins/redmine_bibliography/lib/bibliography/projects_controller_patch.rb | ||
|---|---|---|
| 1 |
# -*- coding: utf-8 -*- |
|
| 2 |
require_dependency 'projects_controller' |
|
| 3 |
|
|
| 4 |
module Bibliography |
|
| 5 |
module ProjectsControllerPatch |
|
| 6 |
def self.included(base) |
|
| 7 |
base.send(:include, InstanceMethods) |
|
| 8 |
|
|
| 9 |
base.class_eval do |
|
| 10 |
unloadable |
|
| 11 |
|
|
| 12 |
# reads the publications helper on the projects controller |
|
| 13 |
helper :publications |
|
| 14 |
include PublicationsHelper |
|
| 15 |
|
|
| 16 |
end |
|
| 17 |
end |
|
| 18 |
|
|
| 19 |
module InstanceMethods |
|
| 20 |
|
|
| 21 |
end |
|
| 22 |
|
|
| 23 |
end |
|
| 24 |
end |
|
Also available in: Unified diff