Class: Asyncapi::Client::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/asyncapi/client/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#mount_on_routesObject



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