Class: ShopifyApp::Generators::RoutesGenerator

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

Instance Method Summary collapse

Instance Method Details

#disable_engine_routesObject



14
15
16
17
18
19
20
# File 'lib/generators/shopify_app/routes/routes_generator.rb', line 14

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

#inject_shopify_app_routes_into_application_routesObject



10
11
12
# File 'lib/generators/shopify_app/routes/routes_generator.rb', line 10

def inject_shopify_app_routes_into_application_routes
  route(session_routes)
end