Sha256: 85a6ccfaf0ca66f41dc103f1e618486fb00a4417e0b8dad8279828bcc177277b
Contents?: true
Size: 468 Bytes
Versions: 10
Compression:
Stored size: 468 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) { where(order_id: order_id) } end end def to_s id.to_s # TODO end end end
Version data entries
10 entries across 10 versions & 1 rubygems