Module: SubjModels::OrderDeliveryNovaPoshtaWarhouseModule

Defined in:
lib/subj_models/order_delivery_nova_poshta_warhouse.rb

Class Method Summary collapse

Class Method Details

.included(including_class) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/subj_models/order_delivery_nova_poshta_warhouse.rb', line 5

def self.included(including_class)

  including_class.class_eval do
    include SubjModels::ComprisingExternalId

    belongs_to :order

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

  end

end