Class: Form::Email
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Form::Email
- Includes:
- Admin::Form::Email
- Defined in:
- app/models/form/email.rb
Instance Method Summary collapse
Methods included from Admin::Form::Email
Instance Method Details
#body ⇒ Object
13 14 15 |
# File 'app/models/form/email.rb', line 13 def body send("body_#{I18n.locale}").presence || I18n.t('cms.form.email.default_body') end |
#send_to ⇒ Object
17 18 19 |
# File 'app/models/form/email.rb', line 17 def send_to read_attribute(:send_to).presence || Setting[:cms_mail_bcc] end |
#subject ⇒ Object
9 10 11 |
# File 'app/models/form/email.rb', line 9 def subject send("subject_#{I18n.locale}").presence || I18n.t('cms.form.email.default_subject') end |