Save one query

This commit is contained in:
Jorge Manrubia
2025-06-24 13:00:30 +02:00
parent 21ac312a6d
commit 0fe54e2047
+1 -1
View File
@@ -4,7 +4,7 @@ class Search::Result < ApplicationRecord
belongs_to :comment, foreign_key: :comment_id, optional: true
def source
comment || card
comment_id.present? ? comment : card
end
def readonly?