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

Version Path
subj_models-0.6.2 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.6.1 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.6.0 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.9 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.8 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.7 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.6 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.5 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.4 lib/subj_models/order_delivery_privatbank.rb
subj_models-0.5.3 lib/subj_models/order_delivery_privatbank.rb