Class: OpmlImportMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/opml_import_mailer.rb

Instance Method Summary collapse

Instance Method Details

#import_finished_error_email(user) ⇒ Object

Send an email when the Import OPML background process is finished with an error


18
19
20
21
22
23
24
# File 'app/mailers/opml_import_mailer.rb', line 18

def import_finished_error_email(user)
  @user = user
  @url = read_url locale: user.locale
  I18n.with_locale user.locale do
    mail to: @user.email
  end
end

#import_finished_success_email(user) ⇒ Object

Send an email when the Import OPML background process is finished successfully


7
8
9
10
11
12
13
# File 'app/mailers/opml_import_mailer.rb', line 7

def import_finished_success_email(user)
  @user = user
  @url = read_url locale: user.locale
  I18n.with_locale user.locale do
    mail to: @user.email
  end
end