Pattern for Breaking Circular Dependencies in Rails Models - Feedback and Suggestions Welcome!

BTW… it looks like Zeitwerk’s on_load would allow me to monitor the loading of a specific class. So something like this could work:

Rails.autoloaders.main.on_load("Post") do |klass, abspath|
  # klass is the reloaded Post class so I can (re-)configure it here
end