Class: Asyncapi::Client::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Asyncapi::Client::ConfigGenerator
- Defined in:
- lib/generators/asyncapi/client/config_generator.rb
Instance Method Summary collapse
Instance Method Details
#mount_on_routes ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/asyncapi/client/config_generator.rb', line 8 def mount_on_routes inject_into_file( "config/routes.rb", %Q( mount Asyncapi::Client::Engine, at: "/asyncapi/client"\n), before: /^end/ ) end |