Sha256: 2d4216c25ded6a0aa3e3513a172346d4c39923591c5d32bed8eab46405bf2194
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::Orders::Show::Adjustments::Index::Adjustable::Component < SolidusAdmin::BaseComponent attr_reader :adjustment, :adjustable, :model_name def initialize(adjustment) @adjustment = adjustment @adjustable = adjustment.adjustable @model_name = adjustable&.model_name&.human end def call render component("ui/thumbnail_with_caption").new(caption:, detail:) do thumbnail end end def thumbnail render(component("ui/thumbnail").for(adjustment.adjustable, class: "basis-10")) end def caption end def detail end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin-0.3.2 | app/components/solidus_admin/orders/show/adjustments/index/adjustable/component.rb |