Remove useless andand called on scope

This commit is contained in:
Maikel Linke
2017-04-12 15:00:21 +10:00
parent 1f2c6f2a85
commit 81877fedb6
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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