Class: DuodealerApp::Generators::RoutesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/duodealer_app/routes/routes_generator.rb

Instance Method Summary collapse

Instance Method Details

#disable_engine_routesObject



12
13
14
15
16
17
18
# File 'lib/generators/duodealer_app/routes/routes_generator.rb', line 12

def disable_engine_routes
  gsub_file(
    "config/routes.rb",
    "mount DuodealerApp::Engine, at: '/'",
    ""
  )
end

#inject_duodealer_app_routes_into_application_routesObject



8
9
10
# File 'lib/generators/duodealer_app/routes/routes_generator.rb', line 8

def inject_duodealer_app_routes_into_application_routes
  route(session_routes)
end