Sha256: b93025afc4c2abf17d61090f6e8942ba84c886e360fb35f4802074bbd8592adc
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
module SubjModels module OrderDeliverySubjCourier def self.included(including_class) including_class.class_eval do 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subj_models-0.4.1 | lib/subj_models/order_delivery_subj_courier.rb |
subj_models-0.4 | lib/subj_models/order_delivery_subj_courier.rb |