What would be the way to do this in rails 4?
For Rails 3 this works:
config.autoload_paths += Dir[ Rails.root.join('app', 'models', '**/') ]
But in Rails 4 it fails complaining about namespacing non existent ( like
app/models/users/credits.rb
gives error
Unable to autoload constant User::Credits, expected