Mercurial > hg > soundsoftware-site
comparison vendor/plugins/redmine_bibliography/init.rb @ 654:1ee95265342f feature_36
Merge
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 09 Sep 2011 14:35:38 +0100 |
parents | f029431de4dd |
children | 7240e0419aac |
comparison
equal
deleted
inserted
replaced
653:0c5674b65db0 | 654:1ee95265342f |
---|---|
5 | 5 |
6 # Patches to the Redmine core. | 6 # Patches to the Redmine core. |
7 Dispatcher.to_prepare :redmine_model_dependencies do | 7 Dispatcher.to_prepare :redmine_model_dependencies do |
8 require_dependency 'project' | 8 require_dependency 'project' |
9 require_dependency 'user' | 9 require_dependency 'user' |
10 require_dependency 'mailer' | |
10 | 11 |
11 unless Project.included_modules.include? Bibliography::ProjectPublicationsPatch | 12 unless Project.included_modules.include? Bibliography::ProjectPublicationsPatch |
12 Project.send(:include, Bibliography::ProjectPublicationsPatch) | 13 Project.send(:include, Bibliography::ProjectPublicationsPatch) |
13 end | 14 end |
14 | 15 |
15 unless User.included_modules.include? Bibliography::UserAuthorPatch | 16 unless User.included_modules.include? Bibliography::UserAuthorPatch |
16 User.send(:include, Bibliography::UserAuthorPatch) | 17 User.send(:include, Bibliography::UserAuthorPatch) |
17 end | 18 end |
19 | |
20 unless Mailer.included_modules.include? Bibliography::MailerPatch | |
21 Mailer.send(:include, Bibliography::MailerPatch) | |
22 end | |
23 | |
24 | |
18 end | 25 end |
19 | 26 |
20 | 27 |
21 # Plugin Info | 28 # Plugin Info |
22 Redmine::Plugin.register :redmine_bibliography do | 29 Redmine::Plugin.register :redmine_bibliography do |