Thread entries relay touches to thread

This commit is contained in:
Jose Farias
2024-10-24 19:27:55 -06:00
parent d88d9437f8
commit 3cd1d34f9d
+2
View File
@@ -3,6 +3,8 @@ class Bubble::Thread::Entry < ApplicationRecord
delegated_type :threadable, types: Threadable::TYPES, inverse_of: :thread_entry, dependent: :destroy
after_touch -> { thread.touch }
scope :chronologically, -> { order created_at: :asc, id: :desc }
def to_partial_path