Sha256: 569993d2af5f7ed6b2ced8cfff7c1a5b6ce8fa1aa4ef4f4b933f8c22cb0ae1d8

Contents?: true

Size: 994 Bytes

Versions: 10

Compression:

Stored size: 994 Bytes

Contents

module Tienda
  class OrderMailer < ActionMailer::Base

    def received(order)
      @order = order
      mail :from => Tienda.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('tienda.order_mailer.received.subject', :default => "Order Confirmation")
    end

    def accepted(order)
      @order = order
      mail :from => Tienda.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('tienda.order_mailer.received.accepted', :default => "Order Accepted")
    end

    def rejected(order)
      @order = order
      mail :from => Tienda.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('tienda.order_mailer.received.rejected', :default => "Order Rejected")
    end

    def shipped(order)
      @order = order
      mail :from => Tienda.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('tienda.order_mailer.received.shipped', :default => "Order Shipped")
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tienda-2.1.3 app/mailers/tienda/order_mailer.rb
tienda-2.1.2 app/mailers/tienda/order_mailer.rb
tienda-2.1.1 app/mailers/tienda/order_mailer.rb
tienda-2.1.0 app/mailers/tienda/order_mailer.rb
tienda-2.0.2 app/mailers/tienda/order_mailer.rb
tienda-2.0.1 app/mailers/tienda/order_mailer.rb
tienda-1.1.2 app/mailers/tienda/order_mailer.rb
tienda-1.1.1 app/mailers/tienda/order_mailer.rb
tienda-1.1.0 app/mailers/tienda/order_mailer.rb
tienda-1.0.0 app/mailers/tienda/order_mailer.rb