5ad2d09eae
We need to rework this as part of the filters revamp. "indexed_by" being a mix of filters keeps biting us.
17 lines
338 B
Ruby
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
|