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