This method is deprecated or moved on the latest stable version.
The last existing version (v2.1.0) is shown here.
search_for_file(path_suffix)
public
Search for a file in load_paths matching the provided suffix.
# File activesupport/lib/active_support/dependencies.rb, line 165
def search_for_file(path_suffix)
path_suffix = path_suffix + '.rb' unless path_suffix.ends_with? '.rb'
load_paths.each do |root|
path = File.join(root, path_suffix)
return path if File.file? path
end
nil # Gee, I sure wish we had first_match ;-)
end