Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all autoload paths in Rails

How do you list all of the autoload paths in Rails?

In Rails console when I do this, it only lists the custom paths added to the config:

$ rails c
Loading development environment (Rails 3.2.9)
1.9.3p194 :001 > MyRailsApp::Application.config.autoload_paths
=> [] 
like image 734
Gary S. Weaver Avatar asked Nov 29 '12 15:11

Gary S. Weaver


1 Answers

Rails.application.instance_variable_get(:"@_all_autoload_paths")
like image 162
Naveen Kumar Avatar answered Sep 21 '22 13:09

Naveen Kumar