Sha256: 3b8438903d28f8b9963eded0a74b042c8660bf1fabb825af7114e1f7b0d14698

Contents?: true

Size: 351 Bytes

Versions: 34

Compression:

Stored size: 351 Bytes

Contents

module Piggybak
  class Shipment < ActiveRecord::Base
    belongs_to :order
    belongs_to :shipping_method
    belongs_to :line_item

    validates_presence_of :status
    validates_presence_of :shipping_method_id
    
    attr_accessible :shipping_method_id, :status
    
    def status_enum
      ["new", "processing", "shipped"]
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
piggybak-0.6.34 app/models/piggybak/shipment.rb
piggybak-0.6.33 app/models/piggybak/shipment.rb
piggybak-0.6.32 app/models/piggybak/shipment.rb
piggybak-0.6.31 app/models/piggybak/shipment.rb
piggybak-0.6.30 app/models/piggybak/shipment.rb
piggybak-0.6.29 app/models/piggybak/shipment.rb
piggybak-0.6.28 app/models/piggybak/shipment.rb
piggybak-0.6.27 app/models/piggybak/shipment.rb
piggybak-0.6.26 app/models/piggybak/shipment.rb
piggybak-0.6.25 app/models/piggybak/shipment.rb
piggybak-0.6.24 app/models/piggybak/shipment.rb
piggybak-0.6.23 app/models/piggybak/shipment.rb
piggybak-0.6.22 app/models/piggybak/shipment.rb
piggybak-0.6.21 app/models/piggybak/shipment.rb
piggybak-0.6.20 app/models/piggybak/shipment.rb
piggybak-0.6.19 app/models/piggybak/shipment.rb
piggybak-0.6.18 app/models/piggybak/shipment.rb
piggybak-0.6.17 app/models/piggybak/shipment.rb
piggybak-0.6.16 app/models/piggybak/shipment.rb
piggybak-0.6.15 app/models/piggybak/shipment.rb