Sha256: a211ca26bfd5f4809cbb35b63c7010a897e9e1d21cd55b081a38ec763d841bcf

Contents?: true

Size: 391 Bytes

Versions: 37

Compression:

Stored size: 391 Bytes

Contents

module SubjModels

  module OrderDeliverySubjCourierModule

    def self.included(including_class)

      including_class.class_eval do
        include SubjModels::ComprisingExternalId

        belongs_to :order
        belongs_to :city

        scope :order_id, -> (order_id) { parent_id_scope("order", order_id) }

      end

    end

    def to_s
      id.to_s # TODO
    end

  end

end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
subj_sub_models-0.0.3.29 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.28 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.27 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.26 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.25 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.24 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.23 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.22 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.21 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.20 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.19 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.18 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.17 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.16 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.15 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.14 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.13 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.12 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.11 lib/subj_models/order_delivery_subj_courier.rb
subj_sub_models-0.0.3.10 lib/subj_models/order_delivery_subj_courier.rb