From c40538a9f7f772f9f3ca7cbcf10602edf31ab5d4 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 20 Oct 2018 09:25:03 -0300 Subject: [PATCH] listado de autorxs --- app/views/posts/_form.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 99da1da2..8c99ab8e 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -22,7 +22,7 @@ - if current_user.is_a? Usuaria .form-group = label_tag 'post_author', t('posts.author') - - todxs = (@site.usuarias + @site.invitadxs).map(&:username) + - todxs = (@site.usuarias + @site.invitadxs).compact.uniq.map(&:username) = select_tag 'post[author]', options_for_select(todxs, @post.author || current_user.email), { class: 'form-control select2',