Class: Workarea::Storefront::PagesController
Instance Method Summary
collapse
#current_layout, #current_user_info, #health_check, #layout_content
#lookup_order, #lookup_order=
#clear_current_order, #completed_order, #completed_order=, #current_checkout, #current_order, #current_order=, #current_shipping, #current_shippings, #logout
Instance Method Details
#accessibility ⇒ Object
19
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 19
def accessibility; end
|
#browser_config ⇒ Object
20
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 20
def browser_config; end
|
#home_page ⇒ Object
11
12
13
14
15
16
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 11
def home_page
@page = Storefront::ContentViewModel.new(
Content.for('home_page'),
view_model_options
)
end
|
#robots ⇒ Object
18
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 18
def robots; end
|
#show ⇒ Object
5
6
7
8
9
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 5
def show
model = Content::Page.find_by(slug: params[:id])
raise InvalidDisplay unless model.active? || current_user.try(:admin?)
@page = Storefront::PageViewModel.new(model, view_model_options)
end
|
#web_manifest ⇒ Object
21
|
# File 'app/controllers/workarea/storefront/pages_controller.rb', line 21
def web_manifest; end
|