Files
fizzy/app/models/event_summary.rb
T
2024-10-27 12:13:03 -06:00

10 lines
230 B
Ruby

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