From 13c7251e8143412e62b040e9e14cf4a55630a4fc Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Fri, 29 Sep 2023 22:11:55 +0200 Subject: [PATCH] Autocorrect Rails/SelectMap offense --- app/controllers/admin/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/articles_controller.rb b/app/controllers/admin/articles_controller.rb index 4dfb138c..774fe8a2 100644 --- a/app/controllers/admin/articles_controller.rb +++ b/app/controllers/admin/articles_controller.rb @@ -93,7 +93,7 @@ def destroy end def auto_complete_for_article_keywords - @items = Tag.select(:display_name).order(:display_name).map(&:display_name) + @items = Tag.order(:display_name).pluck(:display_name) render json: @items end