# HG changeset patch # User luisf # Date 1380545534 -3600 # Node ID 95bdaaab97caa5f278e17c584ddaf87e596038a7 # Parent 581999ce44ea17d370c5b758111425ec7c3e9c03 fixed deprecation warnings diff -r 581999ce44ea -r 95bdaaab97ca plugins/redmine_bibliography/app/models/publication.rb --- 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