From 1dc65e24e2c323672506b3f76ec159febda11199 Mon Sep 17 00:00:00 2001 From: JG Date: Tue, 12 Jul 2022 11:58:06 +0100 Subject: [PATCH] WIP passing feature tests --- app/controllers/schemes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index 64da2edc4..302ff36cb 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -9,7 +9,7 @@ class SchemesController < ApplicationController def index flash[:notice] = "#{Scheme.find(params[:scheme_id].to_i).service_name} has been created." if params[:scheme_id] redirect_to schemes_organisation_path(current_user.organisation) unless current_user.support? - all_schemes = Scheme.all + all_schemes = Scheme.all.order("service_name ASC") @pagy, @schemes = pagy(filtered_collection(all_schemes, search_term)) @searched = search_term.presence