Revision 1401:95bdaaab97ca plugins/redmine_bibliography/app

View differences:

plugins/redmine_bibliography/app/models/publication.rb
53 53
  def notify_authors_publication_added(project)
54 54
    self.authors.each do |author|
55 55
      Rails.logger.debug { "Sending mail to \"#{self.title}\" publication authors." }
56
      Mailer.deliver_publication_added(author.user, self, project) unless author.user.nil?
56
      Mailer.publication_added(author.user, self, project).deliver unless author.user.nil?
57 57
    end
58 58
  end
59 59

  
60 60
  def notify_authors_publication_updated(project)
61 61
    self.authors.each do |author|
62 62
      Rails.logger.debug { "Sending mail to \"#{self.title}\" publication authors." }
63
      Mailer.deliver_publication_updated(author.user, self, project) unless author.user.nil?
63
      Mailer.publication_updated(author.user, self, project).deliver unless author.user.nil?
64 64
    end
65 65
  end
66 66

  

Also available in: Unified diff