Skip to content

Commit

Permalink
Merge pull request #2207 from jhawthorn/remove_unhelpful_include
Browse files Browse the repository at this point in the history
Remove unhelpful preload in Stock::Estimator
  • Loading branch information
jhawthorn authored Sep 12, 2017
2 parents 0d9c043 + 5f31277 commit c62dabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/stock/estimator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def calculate_shipping_rates(package)
def shipping_methods(package)
package.shipping_methods
.available_for_address(package.shipment.order.ship_address)
.includes(:calculator, tax_category: :tax_rates)
.includes(:calculator)
.to_a
.select do |ship_method|
calculator = ship_method.calculator
Expand Down

0 comments on commit c62dabb

Please sign in to comment.