Sha256: bb70ab34c7ffd3fb41816291dd721b1e616e82c3aa8f61ff8424637ee5429cb4
Contents?: true
Size: 557 Bytes
Versions: 12
Compression:
Stored size: 557 Bytes
Contents
module Workarea module Api module Storefront class MenusController < Api::Storefront::ApplicationController before_action :cache_page def index models = Navigation::Menu.all.select(&:active?) @menus = Workarea::Storefront::MenuViewModel.wrap(models, params) end def show model = Navigation::Menu.find(params[:id]) raise InvalidDisplay unless model.active? @menu = Workarea::Storefront::MenuViewModel.wrap(model, params) end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems