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


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

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

#inject_shopify_app_routes_into_application_routesObject


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

def inject_shopify_app_routes_into_application_routes
  route(session_routes)
end