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.6.2 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.6.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.3 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.2 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.5.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.2.6 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.2 app/models/spree/promotion_action_line_item.rb
spree_core-4.4.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.4.0.rc2 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.1 app/models/spree/promotion_action_line_item.rb
spree_core-4.4.0.rc1 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.0 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.0.rc3 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.0.rc2 app/models/spree/promotion_action_line_item.rb
spree_core-4.3.0.rc1 app/models/spree/promotion_action_line_item.rb
spree_core-4.2.5 app/models/spree/promotion_action_line_item.rb
spree_core-4.1.14 app/models/spree/promotion_action_line_item.rb
spree_core-4.0.8 app/models/spree/promotion_action_line_item.rb