From 81877fedb6dcf0f09eca599d5bdd59fa5b49d380 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 12 Apr 2017 15:00:21 +1000 Subject: [PATCH] Remove useless `andand` called on scope --- lib/open_food_network/enterprise_injection_data.rb | 2 +- spec/controllers/shops_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/open_food_network/enterprise_injection_data.rb b/lib/open_food_network/enterprise_injection_data.rb index 2c8b470069..3d15344472 100644 --- a/lib/open_food_network/enterprise_injection_data.rb +++ b/lib/open_food_network/enterprise_injection_data.rb @@ -1,7 +1,7 @@ module OpenFoodNetwork class EnterpriseInjectionData def active_distributors - @active_distributors ||= Enterprise.distributors_with_active_order_cycles.andand.ready_for_checkout + @active_distributors ||= Enterprise.distributors_with_active_order_cycles.ready_for_checkout end def earliest_closing_times diff --git a/spec/controllers/shops_controller_spec.rb b/spec/controllers/shops_controller_spec.rb index 2e11011c57..2b99c5f62c 100644 --- a/spec/controllers/shops_controller_spec.rb +++ b/spec/controllers/shops_controller_spec.rb @@ -6,7 +6,7 @@ describe ShopsController do let!(:invisible_distributor) { create(:distributor_enterprise, visible: false) } before do - Enterprise.stub_chain("distributors_with_active_order_cycles.andand.ready_for_checkout") { [distributor] } + Enterprise.stub_chain("distributors_with_active_order_cycles.ready_for_checkout") { [distributor] } end # Exclusion from actual rendered view handled in features/consumer/home