Module: Workarea::Storefront::CheckInventory
- Included in:
- CartItemsController, CartsController
- Defined in:
- app/controllers/workarea/storefront/check_inventory.rb
Instance Method Summary collapse
Instance Method Details
#check_inventory ⇒ Object
4 5 6 7 |
# File 'app/controllers/workarea/storefront/check_inventory.rb', line 4 def check_inventory reservation = InventoryAdjustment.new(current_order).tap(&:perform) flash[:error] = reservation.errors.to_sentence if reservation.errors.any? end |