Class: Workarea::Storefront::InquiryViewModel

Inherits:
ApplicationViewModel
  • Object
show all
Includes:
DisplayContent
Defined in:
app/view_models/workarea/storefront/inquiry_view_model.rb

Instance Method Summary collapse

Methods included from DisplayContent

#browser_title, #content, #content_blocks, #content_blocks_for, #meta_description, #open_graph_asset

Instance Method Details

#subjectsObject



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

#titleObject



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