Remove default chronological order

This commit is contained in:
Jorge Manrubia
2025-04-30 08:24:22 +02:00
parent 9edffe2170
commit c7893aa24d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class Card < ApplicationRecord
belongs_to :collection, touch: true
belongs_to :creator, class_name: "User", default: -> { Current.user }
has_many :comments, -> { chronologically }, dependent: :destroy
has_many :comments, dependent: :destroy
has_one_attached :image, dependent: :purge_later
has_markdown :description
+1 -1
View File
@@ -1,5 +1,5 @@
<%= messages_tag(card) do %>
<%= render partial: "cards/comments/comment", collection: card.comments, cached: true %>
<%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %>
<%= render "cards/comments/new", card: card %>
<div class="comments__subscribers flex flex-column margin-block txt-align-start full-width">