mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-29 06:21:16 +00:00
Merge pull request #6776 from Matt-Yorkley/dead-argument
Dead code: superfluous argument in CartService#populate
This commit is contained in:
@@ -11,7 +11,7 @@ class CartController < BaseController
|
||||
Spree::Adjustment.without_callbacks do
|
||||
cart_service = CartService.new(order)
|
||||
|
||||
cart_service.populate(params.slice(:products, :variants, :quantity), true)
|
||||
cart_service.populate(params.slice(:variants, :quantity), true)
|
||||
if cart_service.valid?
|
||||
order.update_distribution_charge!
|
||||
order.cap_quantity_at_stock!
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
require 'open_food_network/scope_variant_to_hub'
|
||||
|
||||
# Previously Spree::OrderPopulator. Modified to work with max_quantity and variant overrides.
|
||||
|
||||
class CartService
|
||||
attr_accessor :order, :currency
|
||||
attr_reader :variants_h
|
||||
|
||||
Reference in New Issue
Block a user