Class: RailsMermaidErd::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- RailsMermaidErd::Railtie
- Defined in:
- lib/rails-mermaid_erd/railtie.rb
Overview
Registers the ‘mermaid_erd` rake task only when Rails is actually loading tasks (i.e. under `rake`/`rails` CLIs, never on web/console/job boots). Pairs with the `autoload` declarations in lib/rails-mermaid_erd.rb so the heavy `Builder` / `Configuration` constants — and the `erb`/`fileutils` requires their task body needs — stay off the boot path entirely.