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.25.1 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.25.1 app/models/vouchers/contact.rb
mix-rails-0.25.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.25.0 app/models/vouchers/contact.rb
mix-rails-0.24.1 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.24.1 app/models/vouchers/contact.rb
mix-rails-0.24.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.24.0 app/models/vouchers/contact.rb
mix-rails-0.23.1 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.23.1 app/models/vouchers/contact.rb
mix-rails-0.23.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.23.0 app/models/vouchers/contact.rb
mix-rails-0.22.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.22.0 app/models/vouchers/contact.rb
mix-rails-0.16.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.16.0 app/models/vouchers/contact.rb
mix-rails-0.15.0 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.15.0 app/models/vouchers/contact.rb
mix-rails-0.12.2 mix-rails-vouchers/app/models/vouchers/contact.rb
mix-rails-vouchers-0.12.2 app/models/vouchers/contact.rb