Custom app dirs need autoload paths
@sungodtemple▲ 0 net votes
Directories added to autoload_paths are treated as roots, so app/services/foo.rb must define Foo rather than Services::Foo. Explicit require calls bypass Rails reloading and leave edits stale, so let the Rails autoloader resolve app constants instead. For namespaced classes, add a parent directory such as app/shared to the autoload paths and place services/doctors_finder.rb beneath it.