From 6e1090810adf95a5ede3a0f07b46c097ece0a10a Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 9 Oct 2016 02:45:20 +0300 Subject: [PATCH] Order users in event form by email --- app/views/management/events/_form_participations.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/management/events/_form_participations.html.slim b/app/views/management/events/_form_participations.html.slim index be62abd..115a2a1 100644 --- a/app/views/management/events/_form_participations.html.slim +++ b/app/views/management/events/_form_participations.html.slim @@ -8,7 +8,7 @@ = ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right'] span.clearfix .panel-body - = ff.association :participant, label_method: :email + = ff.association :participant, collection: User.unscoped.order(email: :asc), label_method: :email = ff.input :approved, default: true .col-lg-6 .panel.panel-default