From 620a0841e898da16c0ed6030415ec59efe1a81f2 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Fri, 13 Jul 2018 16:54:19 +0200 Subject: [PATCH] Cleanup --- app/views/exercise_collections/_form.html.slim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/exercise_collections/_form.html.slim b/app/views/exercise_collections/_form.html.slim index dcdde074..791edc3a 100644 --- a/app/views/exercise_collections/_form.html.slim +++ b/app/views/exercise_collections/_form.html.slim @@ -1,5 +1,3 @@ -- users = InternalUser.order(:name) - = form_for(@exercise_collection, multipart: true) do |f| = render('shared/form_errors', object: @exercise_collection) .form-group @@ -10,7 +8,7 @@ = f.check_box(:use_anomaly_detection, {class: 'form-control'}) .form-group = f.label(t('activerecord.attributes.exercise_collections.user')) - = f.collection_select(:user_id, users, :id, :name, {}, {class: 'form-control'}) + = f.collection_select(:user_id, InternalUser.order(:name), :id, :name, {}, {class: 'form-control'}) .table-responsive#exercise-list table.table