Class: Spree::Contact
- Inherits:
-
MailForm::Base
- Object
- MailForm::Base
- Spree::Contact
- Defined in:
- app/models/spree/contact.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
20 21 22 |
# File 'app/models/spree/contact.rb', line 20 def [](key) send(key) end |
#customer_support_email_bug? ⇒ Boolean
16 17 18 |
# File 'app/models/spree/contact.rb', line 16 def customer_support_email_bug? errors.add(:customer_support_email, 'is not there') if customer_support_email.nil? || customer_support_email.empty? end |
#headers ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/models/spree/contact.rb', line 8 def headers { subject: 'Contact Us', to: customer_support_email.to_s, from: %("#{name}" <#{email}>) } end |