Mercurial > hg > soundsoftware-site
changeset 1401:95bdaaab97ca luisf
fixed deprecation warnings
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 30 Sep 2013 13:52:14 +0100 |
parents | 581999ce44ea |
children | 5cb7eeccede1 7367cd232b1e |
files | plugins/redmine_bibliography/app/models/publication.rb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/models/publication.rb Mon Sep 30 13:51:33 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/publication.rb Mon Sep 30 13:52:14 2013 +0100 @@ -53,14 +53,14 @@ def notify_authors_publication_added(project) self.authors.each do |author| Rails.logger.debug { "Sending mail to \"#{self.title}\" publication authors." } - Mailer.deliver_publication_added(author.user, self, project) unless author.user.nil? + Mailer.publication_added(author.user, self, project).deliver unless author.user.nil? end end def notify_authors_publication_updated(project) self.authors.each do |author| Rails.logger.debug { "Sending mail to \"#{self.title}\" publication authors." } - Mailer.deliver_publication_updated(author.user, self, project) unless author.user.nil? + Mailer.publication_updated(author.user, self, project).deliver unless author.user.nil? end end