Module: Comable::Order::DeprecatedMethods

Extended by:
ActiveSupport::Concern
Included in:
Comable::Order
Defined in:
app/models/comable/order/deprecated_methods.rb

Instance Method Summary collapse

Instance Method Details

#shipmentObject


6
7
8
# File 'app/models/comable/order/deprecated_methods.rb', line 6

def shipment
  shipments.first
end

#shipment=(shipment) ⇒ Object


10
11
12
# File 'app/models/comable/order/deprecated_methods.rb', line 10

def shipment=(shipment)
  shipments << shipment unless shipments.include? shipment
end