aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-16 11:36:57 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-16 11:36:57 +0100
commitc50a8c64583710761c36ee4e6e4553c27508725a (patch)
treed5d3ab9a12045c81fb0b010fbb27d96dfac39db8 /app/views
parentf0bcdcf4740148be2bd2505fbc7a85549a5d6fb2 (diff)
downloadoperum-c50a8c64583710761c36ee4e6e4553c27508725a.tar.gz
operum-c50a8c64583710761c36ee4e6e4553c27508725a.zip
tags: ensure the order by name
Apparently `#find_each` disregards the order, and so previously ordering and then calling this method was actually for nothing. Thus, let's stick to just `#each`. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/tags/_taggable.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tags/_taggable.html.erb b/app/views/tags/_taggable.html.erb
index 5d848d0..0386524 100644
--- a/app/views/tags/_taggable.html.erb
+++ b/app/views/tags/_taggable.html.erb
@@ -3,7 +3,7 @@
<h5><%= I18n.t('tags.title') %> &#8212; <%= link_to I18n.t('tags.new-action'), new_tag_path %></h5>
<div class="flex-list">
- <% Tag.order(:name).find_each do |tag| %>
+ <% Tag.order(:name).each do |tag| %>
<div class="flex-element">
<label>
<%= form.check_box :tag_ids, { multiple: true, checked: tag_references&.include?(tag.id) }, tag.id, nil %>