Sha256: da7b9cf4a538e1da8d8a5b67bd8a6f5019e1fabd6ee7574fbdf0333a477542a2
Contents?: true
Size: 406 Bytes
Versions: 28
Compression:
Stored size: 406 Bytes
Contents
module Workarea module Admin class FulfillmentTokenViewModel < ApplicationViewModel def order return unless order_id.present? @order ||= options[:order] || Order.find(order_id) end def order_item return unless order.present? && order_item_id.present? @order_item ||= order.items.detect { |i| i.id.to_s == order_item_id } end end end end
Version data entries
28 entries across 28 versions & 1 rubygems