Mounts a Rails engine that lists app models in a sidebar and renders the full callback/validator chain for any model. Source locations are linked via vscode:// URIs. Condition badges and concern module tags distinguish at-a-glance where each callback comes from. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
10 lines
304 B
Ruby
10 lines
304 B
Ruby
module Whetrails
|
|
class Engine < ::Rails::Engine
|
|
isolate_namespace Whetrails
|
|
|
|
# In the gem's dev setup, config/routes.rb belongs to the host app.
|
|
# Point the engine's routing path to a dedicated file.
|
|
config.paths.add "config/routes.rb", with: "lib/whetrails/engine_routes.rb"
|
|
end
|
|
end
|