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

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

Instance Method Summary collapse

Instance Method Details

#captionObject



4
5
6
# File 'app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb', line 4

def caption
  "#{t('spree.shipment')} ##{adjustable.number}"
end

#detailObject



8
9
10
11
12
13
14
# File 'app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb', line 8

def detail
  link_to(
    adjustable.shipping_method.name,
    spree.edit_admin_shipping_method_path(adjustable.shipping_method),
    class: "body-link"
  )
end