Sha256: 41735bed25ee69c696b4d47c1be3d4eaf93be371b904bd1ca0ef0d1f488cf36b

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

class ProducerMailer < ActionMailer::Base
  default :from => "support@artful.ly"
  layout "mail"

  def donation_kit_notification(kit, producer)
    @kit = kit
    @organization = kit.organization
    @producer = producer

    mail :to => producer.email, :subject => "Artful.ly: Complete Donation Kit Activation for #{@organization.name}"
  end

  def ticket_offer_accepted(ticket_offer)
    @ticket_offer = ticket_offer
    @organization = ticket_offer.organization
    @producer = @organization.owner
    @reseller_profile = ticket_offer.reseller_profile
    @reseller = @reseller_profile.organization
    @event = @ticket_offer.event
    @show = @ticket_offer.show
    @section = @ticket_offer.section

    mail :to => @producer.email, :subject => "Artful.ly: Ticket Offer Accepted"
  end

  def ticket_offer_rejected(ticket_offer)
    @ticket_offer = ticket_offer
    @organization = ticket_offer.organization
    @producer = @organization.owner
    @reseller_profile = ticket_offer.reseller_profile
    @reseller = @reseller_profile.organization
    @event = @ticket_offer.event
    @show = @ticket_offer.show
    @section = @ticket_offer.section

    mail :to => @producer.email, :subject => "Artful.ly: Ticket Offer Rejected"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artfully_ose-1.0.0.rc4 app/mailers/producer_mailer.rb
artfully_ose-1.0.0.rc3 app/mailers/producer_mailer.rb