What I understood is Rails includes /app/models in the load_path
automatically however it does not include subdirectories. Is it right? I
would like to know there is a better way on handling that, either by
generically loading all subdirectories or by having 1 file in the
app/models directory load the files in the subdirectory
right? I
would like to know there is a better way on handling that, either by
generically loading all subdirectories or by having 1 file in the
app/models directory load the files in the subdirectory
This would probably work:
config.load_paths += Dir["#{RAILS_ROOT}/app/models//"]