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.7.7 app/mailers/piggybak/notifier.rb
piggybak-0.7.6 app/mailers/piggybak/notifier.rb
piggybak-0.7.5 app/mailers/piggybak/notifier.rb
piggybak-0.6.34 app/mailers/piggybak/notifier.rb
piggybak-0.7.4 app/mailers/piggybak/notifier.rb
piggybak-0.7.3 app/mailers/piggybak/notifier.rb
piggybak-0.7.2 app/mailers/piggybak/notifier.rb
piggybak-0.7.1 app/mailers/piggybak/notifier.rb
piggybak-0.7.0 app/mailers/piggybak/notifier.rb
piggybak-0.6.33 app/mailers/piggybak/notifier.rb
piggybak-0.6.32 app/mailers/piggybak/notifier.rb
piggybak-0.6.31 app/mailers/piggybak/notifier.rb
piggybak-0.6.30 app/mailers/piggybak/notifier.rb
piggybak-0.6.29 app/mailers/piggybak/notifier.rb
piggybak-0.6.28 app/mailers/piggybak/notifier.rb
piggybak-0.6.27 app/mailers/piggybak/notifier.rb
piggybak-0.6.26 app/mailers/piggybak/notifier.rb
piggybak-0.6.25 app/mailers/piggybak/notifier.rb
piggybak-0.6.24 app/mailers/piggybak/notifier.rb
piggybak-0.6.23 app/mailers/piggybak/notifier.rb