Class: SolidusAdmin::Orders::Show::Adjustments::Index::Adjustable::SpreeLineItem::Component

Inherits:
Component
  • Object
show all
Defined in:
app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_line_item/component.rb

Instance Method Summary collapse

Instance Method Details

#captionObject



6
7
8
9
# File 'app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_line_item/component.rb', line 6

def caption
  options_text = variant.options_text.presence
  options_text || variant.sku
end

#detailObject



11
12
13
# File 'app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_line_item/component.rb', line 11

def detail
  link_to(variant.product.name, solidus_admin.product_path(variant.product), class: "body-link")
end