Files
fizzy/app/models/event/promptable.rb
T
Jorge Manrubia 5ad2d09eae Move the hack to fetch completed cards to the insight command logic
We need to rework this as part of the filters revamp. "indexed_by" being
a mix of filters keeps biting us.
2025-07-24 16:48:05 +02:00

17 lines
338 B
Ruby

module Event::Promptable
extend ActiveSupport::Concern
def to_prompt
<<~PROMPT
BEGIN OF EVENT #{id}
## Event #{action} (#{eventable_type} #{eventable_id}))
* Created at: #{created_at}
* Created by: #{creator.name}
#{eventable.to_prompt}
END OF EVENT #{id}
PROMPT
end
end