Class: RailsAiBridge::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- RailsAiBridge::Engine
- Defined in:
- lib/rails_ai_bridge/engine.rb
Overview
Rails Engine that integrates rails-ai-bridge into the host application.
Registers two initializers that run as part of the normal Rails boot sequence:
rails_ai_bridge.setup— exposes configuration onRails.application.config.rails_ai_bridgeand, when Configuration#cache_warm_on_boot is enabled, schedules a CacheWarmer.warm call viaafter_initialize.rails_ai_bridge.middleware— validates the auto-mount configuration and, when Configuration#auto_mount istrue, inserts Middleware into the Rack stack.
The engine also defines a rake_tasks block (loads
tasks/rails_ai_bridge.rake) and a generators block (loads the
Generators::InstallGenerator).