Class: Workarea::Storefront::MenusController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Workarea::Storefront::MenusController
- Defined in:
- app/controllers/workarea/storefront/menus_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_layout, #current_user_info, #health_check, #layout_content
Methods included from OrderLookup
Methods included from CurrentCheckout
#clear_current_order, #completed_order, #completed_order=, #current_checkout, #current_order, #current_order=, #current_shipping, #current_shippings, #logout
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/workarea/storefront/menus_controller.rb', line 8 def index models = Navigation::Menu.all.select(&:active?) @menus = MenuViewModel.wrap(models, params) end |
#show ⇒ Object
13 14 15 16 |
# File 'app/controllers/workarea/storefront/menus_controller.rb', line 13 def show model = Navigation::Menu.find(params[:id]) @menu = MenuViewModel.wrap(model, params) end |