Module: SolidusVolumePricing::SpreeLineItemPatch

Defined in:
app/patches/models/solidus_volume_pricing/spree_line_item_patch.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



5
6
7
# File 'app/patches/models/solidus_volume_pricing/spree_line_item_patch.rb', line 5

def self.prepended(base)
  base.before_validation :set_volume_pricing_attributes, if: :quantity_changed?
end