Sha256: 2d59783e1d949795d353cd0d883a649573c23722eb3a9382115cddee4cc0caad
Contents?: true
Size: 490 Bytes
Versions: 23
Compression:
Stored size: 490 Bytes
Contents
module Workarea module Admin class PricingSkuViewModel < ApplicationViewModel def timeline @timeline ||= TimelineViewModel.new(model) end def product @product ||= begin product = Catalog::Product.find_by_sku(model.id) ProductViewModel.wrap(product, options) if product.present? end end def inventory @inventory ||= Inventory::Sku.where(id: model.id).first end end end end
Version data entries
23 entries across 23 versions & 1 rubygems