Sha256: 9c5572ae385ca6d6f6206cc3d5a12efcdea97e2dcf10d900605c31a030b785ed

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

# Order Adjustment 是订单调整项。

class Unidom::Order::OrderAdjustment < ActiveRecord::Base

  self.table_name = 'unidom_order_adjustments'

  validates :amount, presence: true, numericality: { less_than: 1000000000, greater_than: -1000000000 }

  belongs_to :adjusted, polymorphic: true

  scope :adjusted_by, ->(adjusted) { where adjusted: adjusted }

  include Unidom::Common::Concerns::ModelExtension

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-order-0.2 app/models/unidom/order/order_adjustment.rb