Thread entries relay touches to thread
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user