Clearer naming

This commit is contained in:
David Heinemeier Hansson
2025-04-12 11:09:55 +02:00
parent ecffdc2af4
commit 63c05220ce
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class Comment < ApplicationRecord
has_markdown :body
searchable_by :body_plain_text, using: :comments_search_index, as: :body
scope :via_card, ->(card) { joins(:message).where(messages: { card_id: card.id }) }
scope :belonging_to_card, ->(card) { joins(:message).where(messages: { card_id: card.id }) }
before_destroy :cleanup_events