This method is deprecated or moved on the latest stable version.
The last existing version (v5.0.0.1) is shown here.
lookup(namespaces)
protected
Receives namespaces in an array and tries to find matching generators in
the load path.
# File railties/lib/rails/generators.rb, line 351
def self.lookup(namespaces) #:nodoc:
paths = namespaces_to_paths(namespaces)
paths.each do |raw_path|
["rails/generators", "generators"].each do |base|
path = "#{base}/#{raw_path}_generator"
begin
require path
return
rescue LoadError => e
raise unless e.message =~ /#{Regexp.escape(path)}$/
rescue Exception => e
warn "[WARNING] Could not load generator #{path.inspect}. Error: #{e.message}.\n#{e.backtrace.join("\n")}"
end
end
end
end