Module: Spree::Admin::AdjustmentsHelper

Defined in:
app/helpers/spree/admin/adjustments_helper.rb

Instance Method Summary collapse

Instance Method Details

#display_adjustable(adjustable) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/spree/admin/adjustments_helper.rb', line 5

def display_adjustable(adjustable)
  case adjustable
    when Spree::LineItem
      display_line_item(adjustable)
    when Spree::Shipment
      display_shipment(adjustable)
    when Spree::Order
      display_order(adjustable)
  end

end