Order users in event form by email

This commit is contained in:
Petko Bordjukov 2016-10-09 02:45:20 +03:00
parent 6f1a50d48d
commit 6e1090810a
1 changed files with 1 additions and 1 deletions

View File

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