rails/rails — Issue #4986: Railties engine configuration does not handle sym linked folders
Author: anikkar
Created: 2012-02-10 08:08:36+00:00
State: open

I have some sym linked folders in my /config/initializers directory, and it seems that rails does not parse into those folders as the current "glob" specification in railties/lib/rails/engine/configuration.rb does not follow sym links. I found that the following change to this files fixes the issue:

54c54
< paths.add "config/initializers", :glob => "**/*.rb"
---
> paths.add "config/initializers", :glob => "**{,/*/**}/*.rb"

Is it possible to modify the glob at config time? Or update the source so that it follows sym links?