Sha256: 3414b62a7854d337351635edb191eab538c2b4dcf6c8e32e7977f4f789967554

Contents?: true

Size: 351 Bytes

Versions: 28

Compression:

Stored size: 351 Bytes

Contents

module Vouchers
  class Contact < MailForm::Base
    attribute :name
    attribute :email
    attribute :message

    def headers
      {
        to: %("#{name}" <#{email}>),
        subject: "Imprima seu Voucher",
        # TODO get site name automatically
        from: "Forro com turista <noreply@forrocomturista.com.br"
      }
    end

  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
mix-rails-0.12.1 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.12.1 app/models/vouchers/contact.rb
mix-rails-0.10.4 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.10.4 app/models/vouchers/contact.rb
mix-rails-0.10.3 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.10.3 app/models/vouchers/contact.rb
mix-rails-0.7.0 vouchers/app/models/vouchers/contact.rb
mix-rails-0.6.0 vouchers/app/models/vouchers/contact.rb