Class: RailsPodKit::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/rails_pod_kit/railtie.rb

Overview

Mounts the health endpoint automatically so the host doesn't have to touch config/routes.rb. The append block is evaluated when the route set is drawn (and on every reload) — after the initializers have run — so the guard sees whether Health.install! was called and with which mount: option. Hosts that want route ownership (custom mount point, constraints) pass mount: false to install! and mount HealthMonitor::Engine themselves.