Files
fizzy/app/models/event_summary.rb
T
2024-10-27 11:57:33 -06:00

10 lines
228 B
Ruby

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