Class: Spree::Cart::SetQuantity
- Inherits:
-
Object
- Object
- Spree::Cart::SetQuantity
- Includes:
- ServiceModule::Base
- Defined in:
- app/services/spree/cart/set_quantity.rb
Instance Method Summary collapse
Methods included from ServiceModule::Base
Instance Method Details
#call(order:, line_item:, quantity: nil) ⇒ Object
6 7 8 9 10 11 |
# File 'app/services/spree/cart/set_quantity.rb', line 6 def call(order:, line_item:, quantity: nil) ActiveRecord::Base.transaction do run :change_item_quantity run Spree::Dependencies.cart_recalculate_service.constantize end end |