Sha256: 4ace2b6806e9fe602a70fbea0931c04769267c5e64a1460dfd72c3d061bd4c5c

Contents?: true

Size: 1.56 KB

Versions: 28

Compression:

Stored size: 1.56 KB

Contents

class ProducerMailer < ActionMailer::Base
  default :from => ARTFULLY_CONFIG[:contact_email]
  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
    @ticket_type = @ticket_offer.ticket_type

    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
    @ticket_type = @ticket_offer.ticket_type

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

  def mailchimp_kit_initial_sync_notification(kit, producer, added_list_names, removed_list_names)
    @kit = kit
    @added_list_names = added_list_names
    @removed_list_names = removed_list_names
    @organization = kit.organization

    mail :to => producer.email, :subject => "Artful.ly: MailChimp kit synced"
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.beta.1 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.alpha.2 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.alpha.1 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.27 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.26 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.24 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.23 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.21 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.20 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.19 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.18 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.17 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.16 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.15 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.12 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.11 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.10 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.9 app/mailers/producer_mailer.rb
artfully_ose-1.2.0.pre.8 app/mailers/producer_mailer.rb