diff --git a/app/models/thread_entry.rb b/app/models/thread_entry.rb index eb6886857..1affa6e5d 100644 --- a/app/models/thread_entry.rb +++ b/app/models/thread_entry.rb @@ -1,7 +1,7 @@ class ThreadEntry < ApplicationRecord belongs_to :bubble, touch: true - delegated_type :threadable, types: %w[ Comment Rollup ], dependent: :destroy, inverse_of: :thread_entry + delegated_type :threadable, types: %w[ Comment Rollup ], inverse_of: :thread_entry, dependent: :destroy scope :chronologically, -> { order created_at: :asc, id: :desc } end