Sha256: afb7c5a279ed4314daf43eb4b9eaade31a0384014814d1e4b88dc16843165647
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
module Workarea decorate Order, with: :ship_station do decorated do field :ship_station_order_id, type: String field :ship_station_exported_at, type: Time field :ship_station_on_hold_until, type: Time index({ ship_station_order_id: 1}, { background: true }) end def ship_station_exported? !!ship_station_exported_at end def ship_station_on_hold? !!ship_station_on_hold_until end def set_ship_station_exported_at! update!( ship_station_exported_at: Time.current ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-ship_station-1.0.1 | app/models/workarea/order.decorator |
workarea-ship_station-1.0.0 | app/models/workarea/order.decorator |