Module: RoutesLazyRoutes::Application::RoutesCommandEagerLoader

Defined in:
lib/routes_lazy_routes/application.rb

Overview

A monkey-patch that eager loads routes before the routes command is executed by prepending this module to the require_enviornment! method that’s called when boot_application! is executed performing console commands.

Instance Method Summary collapse

Instance Method Details

#require_environment!Object



28
29
30
31
32
# File 'lib/routes_lazy_routes/application.rb', line 28

def require_environment!
  super

  RoutesLazyRoutes.eager_load!
end