Use union operator instead of concatenate to load order cycle collection

This commit is contained in:
Rob Harrington
2018-03-07 13:56:00 +11:00
committed by Maikel Linke
parent b17d8c2fe3
commit ce56e667a4

View File

@@ -119,9 +119,9 @@ module Admin
OrderCycle.preload(:schedules).ransack(params[:q]).result.accessible_by(spree_current_user)
end
ocs.undated +
ocs.soonest_closing +
ocs.soonest_opening +
ocs.undated |
ocs.soonest_closing |
ocs.soonest_opening |
ocs.closed
end