Files
fizzy/app/models/bubble/threaded.rb
T
2024-10-23 14:10:04 -06:00

14 lines
257 B
Ruby

module Bubble::Threaded
extend ActiveSupport::Concern
included do
has_many :thread_entries, -> { chronologically }, dependent: :destroy
delegate :latest_rollup, to: :thread
end
def thread
@thread ||= Bubble::Thread.new self
end
end