Skip to content

Commit

Permalink
removes terms_pdf from mass upload finished and failed message
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jurke committed Nov 27, 2014
1 parent 454d4a8 commit cd44b68
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/mailers/article_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ def mass_upload_activation_message mass_upload_id
def mass_upload_failed_message mass_upload_id
@mass_upload = MassUpload.find mass_upload_id
@user = @mass_upload.user
terms_pdf
mail(to: @user.email, subject: "[Fairmondo] Bei deinem CSV-Upload sind Fehler aufgetreten")
end

def mass_upload_finished_message mass_upload_id
@mass_upload = MassUpload.find mass_upload_id
@user = @mass_upload.user
terms_pdf
subject = "[Fairmondo] Dein CSV-Upload ist abgeschlossen"
if @mass_upload.articles_for_mass_activation.any?
subject << ". Es liegen Artikel zur Aktivierung bereit!"
Expand Down

0 comments on commit cd44b68

Please sign in to comment.