Class: Workarea::Storefront::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Workarea::Storefront::ApplicationController
show all
- Includes:
- Authentication, CurrentRelease, Impersonation, CurrentCheckout, OrderLookup
- Defined in:
- app/controllers/workarea/storefront/application_controller.rb
Direct Known Subclasses
AnalyticsController, CartItemsController, CartsController, CategoriesController, CheckoutsController, ContactsController, ContentAreasController, ContentBlocksController, DownloadsController, EmailSignupsController, ErrorsController, MenusController, OrdersController, PagesController, ProductsController, RecentViewsController, RecommendationsController, SearchesController, SitemapsController, StyleGuidesController
Instance Method Summary
collapse
#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
#current_layout ⇒ Object
32
33
34
35
36
37
38
|
# File 'app/controllers/workarea/storefront/application_controller.rb', line 32
def current_layout
if request.xhr? && params[:layout].to_s != 'true'
false
else
'workarea/storefront/application'
end
end
|
#current_user_info ⇒ Object
21
22
23
|
# File 'app/controllers/workarea/storefront/application_controller.rb', line 21
def current_user_info
render 'workarea/storefront/users/current_user'
end
|
#health_check ⇒ Object
17
18
19
|
# File 'app/controllers/workarea/storefront/application_controller.rb', line 17
def health_check
render plain: 'ok'
end
|
#layout_content ⇒ Object
25
26
27
28
29
30
|
# File 'app/controllers/workarea/storefront/application_controller.rb', line 25
def layout_content
@layout_content ||= ContentViewModel.new(
Content.for('layout'),
view_model_options
)
end
|