Class: Events::PostContentUpdated

Inherits:
ApplicationEvent show all
Defined in:
app/events/events.rb

Overview

Published after a blog post's content fields change (solution, subject,
description, or meta_description). Covers both the AI assistant blog tool
path and the CRM editor path via normal update!.

Payload:
post_id: Integer — the post that changed
solution_changed: Boolean — true when the HTML body was part of the save
change_notes: String — optional revision annotation (e.g. "Restored from revision #5")
updater_id: Integer — employee who made the change (for revision author)

Subscribers (in registration order):
PostRevisionSnapshotHandler (sync) — creates immutable ArticleRevision snapshot
PostContentUpdatedHandler (async) — EmbeddedAssetSync, schema, cache purge
PostSitemapRecrawlHandler (async) — recrawls sitemap entries on :low queue

Method Summary

Methods inherited from ApplicationEvent

#data