I am refactoring some shared code in some of my rails apps, and I'm encountering a weird issue with some sym linked directories. Basically, my old structure of my rails app was:
RAILS_ROOT
-> app
-> config
-> initializers
-> common
->lib
-> common
...
Things were working just fine, and rails was recognizing the common folders and loading all of the files in there.
So I decided to move all of the common stuff to its own repo and submodule it into my rails app. So the new folder structure looks like
RAILS_ROOT
-> app
-> config
-> initializers
-> common -> ../../shared/initializers/
->lib
-> common -> ../shared/lib/
-> shared
-> initializers
-> lib
...
...
For some reason, none of the files in the sym linked directories are getting loaded and I'm not sure why. If I create a temp directory in the initializers folder, and copy some of the "common" files over, they load fine, so it seems it has to do with the fact that it is sym linked.