Files
fizzy/app/models/event_summary.rb
T
2024-10-25 16:06:34 -06:00

12 lines
253 B
Ruby

class EventSummary < ApplicationRecord
include Messageable
attr_accessor :bubble
has_many :events, -> { chronologically }, dependent: :delete_all, inverse_of: :summary do
def grouped_boosts
boosts.group_by(&:creator)
end
end
end