Comments arent part of event summaries any more

This commit is contained in:
David Heinemeier Hansson
2025-04-12 11:42:41 +02:00
parent e75d2bcaa1
commit f5b30456a0
-5
View File
@@ -24,11 +24,6 @@ class Comment < ApplicationRecord
private
def cleanup_events
# Delete events that reference through event_summary
if message.event_summary.present?
Event.where(summary: message.event_summary).destroy_all
end
# Delete events that reference directly in particulars
Event.where(particulars: { comment_id: id }).destroy_all
end