Skip to content

Commit

Permalink
Autocorrect Rails/SelectMap offense
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Sep 29, 2023
1 parent a98c1ad commit 13c7251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 13c7251

Please sign in to comment.