I'm using the autoload path's in the application.rb to loads some extra modules and structs.
This is the following bit of code doing it:
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
#{config.root}/app/jobs/
)
The funny thing is both of the "concerns" folders for extending models and controllers are working perfectly.
However the jobs folder is not getting loaded at all.
Is there something special I need to do in order to get a folder in app to be loads or does anyone know why two of these folders are loading and the third isn't?
Try and remove the trailing slash after jobs.
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
#{config.root}/app/jobs
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With