Class: Workarea::Storefront::InquiryViewModel
- Inherits:
-
ApplicationViewModel
- Object
- ApplicationViewModel
- Workarea::Storefront::InquiryViewModel
show all
- Includes:
- DisplayContent
- Defined in:
- app/view_models/workarea/storefront/inquiry_view_model.rb
Instance Method Summary
collapse
#browser_title, #content, #content_blocks, #content_blocks_for, #meta_description, #open_graph_asset
Instance Method Details
#subjects ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'app/view_models/workarea/storefront/inquiry_view_model.rb', line 11
def subjects
Workarea.config.inquiry_subjects.map do |key, default_value|
[
I18n.t('workarea.inquiry.subjects')[key.optionize.to_sym].presence ||
default_value,
key
]
end
end
|
#title ⇒ Object
6
7
8
9
|
# File 'app/view_models/workarea/storefront/inquiry_view_model.rb', line 6
def title
browser_title.presence ||
::I18n.t('workarea.storefront.contacts.contact_us')
end
|