Sha256: dbff526c9e10db58ff38572f13f36e13e9cb141aef72c396727219f137d341ca

Contents?: true

Size: 390 Bytes

Versions: 113

Compression:

Stored size: 390 Bytes

Contents

module Spree
  class PromotionActionLineItem < Spree::Base
    belongs_to :promotion_action, class_name: 'Spree::Promotion::Actions::CreateLineItems'
    belongs_to :variant, class_name: 'Spree::Variant'

    validates :promotion_action, :variant, :quantity, presence: true
    validates :quantity, numericality: { only_integer: true, message: Spree.t('validation.must_be_int') }
  end
end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.10.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.9.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.8.3 app/models/spree/promotion_action_line_item.rb
spree_core-4.8.2 app/models/spree/promotion_action_line_item.rb
spree_core-4.7.3 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.6 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.5 app/models/spree/promotion_action_line_item.rb
spree_core-4.0.9 app/models/spree/promotion_action_line_item.rb
spree_core-4.1.15 app/models/spree/promotion_action_line_item.rb
spree_core-4.2.7 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.3 app/models/spree/promotion_action_line_item.rb
spree_core-4.4.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.4 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.5 app/models/spree/promotion_action_line_item.rb
spree_core-4.7.2 app/models/spree/promotion_action_line_item.rb
spree_core-4.7.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.4 app/models/spree/promotion_action_line_item.rb
spree_core-4.7.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.3 app/models/spree/promotion_action_line_item.rb