Class: Spree::ImportMailer

Inherits:
BaseMailer
  • Object
show all
Defined in:
app/mailers/spree/import_mailer.rb

Instance Method Summary collapse

Instance Method Details

#current_store ⇒ Object



14
15
16
# File 'app/mailers/spree/import_mailer.rb', line 14

def current_store
  @current_store ||= @import.store
end

#import_done(import) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'app/mailers/spree/import_mailer.rb', line 3

def import_done(import)
  @import = import

  with_store_locale(@import.store) do
    mail_template(
      { import: email_data(@import, Spree::Emails::ImportSerializer) },
      to: @import.user.email, store_url: current_store.url
    )
  end
end