Class: Form::Email

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Admin::Form::Email
Defined in:
app/models/form/email.rb

Instance Method Summary collapse

Methods included from Admin::Form::Email

#rails_admin_label

Instance Method Details

#bodyObject



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_toObject



17
18
19
# File 'app/models/form/email.rb', line 17

def send_to
  read_attribute(:send_to).presence || Setting[:cms_mail_bcc]
end

#subjectObject



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