# HG changeset patch # User luisf # Date 1380545493 -3600 # Node ID 581999ce44ea17d370c5b758111425ec7c3e9c03 # Parent 67abd7b08753d380a8da5831ffb63a481bc9a000 Fixed mail bug (due to ActionMailer changes in Rails 3), diff -r 67abd7b08753 -r 581999ce44ea plugins/redmine_bibliography/lib/bibliography/mailer_patch.rb --- a/plugins/redmine_bibliography/lib/bibliography/mailer_patch.rb Thu Sep 26 11:44:57 2013 +0100 +++ b/plugins/redmine_bibliography/lib/bibliography/mailer_patch.rb Mon Sep 30 13:51:33 2013 +0100 @@ -4,7 +4,7 @@ module MailerPatch def self.included(base) # :nodoc: - # Builds a tmail object used to email the specified user that a publication was created and the user is + # Builds a tmail object used to email the specified user that a publication was created and the user is # an author of that publication # # Example: @@ -16,16 +16,15 @@ @project = project set_language_if_valid user.language - recipients user.mail - subject l(:mail_subject_publication_added, Setting.app_title) - body :publication_url => url_for( :controller => 'publications', :action => 'show', :id => publication.id ), - :publication_title => publication.title - render_multipart('publication_added', body) + mail :to => user.mail, + :subject => l(:mail_subject_register, Setting.app_title) + @publication_url = url_for( :controller => 'publications', :action => 'show', :id => publication.id ) + @publication_title = publication.title end - - + + end end end