Files
fizzy/app/models/event/rollup.rb
T
Jose Farias c57f18c20c Materialize abstract thread
The domain language is clearer if we just persist a thread. Also rename some models so their purpose is clear.
2024-10-24 17:36:14 -06:00

12 lines
215 B
Ruby

class Event::Rollup < ApplicationRecord
include Threadable
attr_accessor :thread
has_many :events, -> { chronologically }, dependent: :delete_all
def to_partial_path
"events/rollups/rollup"
end
end