Sha256: af79e19eeb5b1e7b6fed86f80c097e7f3e1b561ee308b5cc655cc0df0078b931
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::Orders::Show::Adjustments::Index::Source::Component < SolidusAdmin::BaseComponent attr_reader :adjustment, :source, :model_name def initialize(adjustment) @adjustment = adjustment @source = adjustment.source @model_name = source&.model_name&.human end def call render component("ui/thumbnail_with_caption").new(icon: icon, caption: caption, detail: detail) end def caption adjustment.label end def detail end def icon "question-line" end end
Version data entries
2 entries across 2 versions & 1 rubygems