Sha256: 83aec3aaf1ce6682148351fff83eb5570abe7904d65d07444698e264a0a58243

Contents?: true

Size: 301 Bytes

Versions: 89

Compression:

Stored size: 301 Bytes

Contents

module Piggybak
  class Notifier < ActionMailer::Base
    default :from => Piggybak.config.email_sender,
            :cc => Piggybak.config.order_cc

    def order_notification(order)
      @order = order

      mail(:to => order.email,
           :subject => "Order ##{@order.id}")
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
piggybak-0.4.7.1 app/mailers/piggybak/notifier.rb
piggybak-0.4.7 app/mailers/piggybak/notifier.rb
piggybak-0.4.6 app/mailers/piggybak/notifier.rb
piggybak-0.4.5 app/mailers/piggybak/notifier.rb
piggybak-0.4.4 app/mailers/piggybak/notifier.rb
piggybak-0.4.3 app/mailers/piggybak/notifier.rb
piggybak-0.4.2 app/mailers/piggybak/notifier.rb
piggybak-0.4.1 app/mailers/piggybak/notifier.rb
piggybak-0.4.0 app/mailers/piggybak/notifier.rb