Sha256: aa7450848f440dfa82dc8c55dc34d2791541c4a2b37c1f2992fb864caa2f3457
Contents?: true
Size: 477 Bytes
Versions: 37
Compression:
Stored size: 477 Bytes
Contents
require 'subj_models/concerns/comprising_external_id' module SubjModels module OrderDeliveryPrivatbankModule def self.included(including_class) including_class.class_eval do include SubjModels::ComprisingExternalId belongs_to :order validates :privat_bank_address, presence: true 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