Sha256: 87f04e89c97f618a3c0c59e43152ac8c026ee4f97359d42d99b212f082437cba

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

module Gemgento

  # @author Gemgento LLC
  class ShipmentItem < ActiveRecord::Base
    belongs_to :shipment, class_name: 'Gemgento::Shipment'
    belongs_to :line_item, class_name: 'Gemgento::LineItem'

    has_one :order, through: :shipment, class_name: 'Gemgento::Order'
    has_one :product, through: :line_item, class_name: 'Gemgento::Product'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/models/gemgento/shipment_item.rb