To let the application to load all the files in app/models/folder,
In application.rb add following line:
config.autoload_paths += Dir[ Rails.root.join('app', 'models', '**/') ]To let the application to load all the files in app/models/folder,
In application.rb add following line:
config.autoload_paths += Dir[ Rails.root.join('app', 'models', '**/') ]