Sha256: 2e8ba8ec06ef69d5c90c33159d2edeb3870b44c2dcb3ceffd8cd59c1b8435fe5
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 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: caption, detail: 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
2 entries across 2 versions & 1 rubygems