Class: ProductHold

Inherits:
Record
  • Object
show all
Defined in:
lib/models/product_hold.rb

Instance Method Summary collapse

Instance Method Details

#increment_quantityObject



3
4
5
6
# File 'lib/models/product_hold.rb', line 3

def increment_quantity
  return if product.unlimited_quantity
  product.increment! :quantity
end