Sha256: 40471f6041c2ef1bf998af4299302ce41f0021a5c5b4b5ae56ad73d63f43e7ce
Contents?: true
Size: 468 Bytes
Versions: 12
Compression:
Stored size: 468 Bytes
Contents
module Workarea module Api module Storefront class ProductsController < Api::Storefront::ApplicationController before_action :cache_page def show model = Workarea::Catalog::Product.find_by(slug: params[:id]) raise InvalidDisplay unless model.active? @product = Workarea::Storefront::ProductViewModel.wrap( model, view_model_options ) end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems