Sha256: e64ac83a05bb9981ffebf38e3b2163a9eafd11dfb4d149b5b485dd5eb12a2577
Contents?: true
Size: 372 Bytes
Versions: 5
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::Orders::Show::CustomerSearch::Result::Component < SolidusAdmin::BaseComponent with_collection_parameter :customer def initialize(order:, customer:) @order = order @customer = customer @name = (customer.default_user_bill_address || customer.default_user_ship_address)&.address&.name if customer end end
Version data entries
5 entries across 5 versions & 1 rubygems