Remove default chronological order
This commit is contained in:
+1
-1
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user