This method is deprecated or moved on the latest stable version.
The last existing version (v5.0.0.1) is shown here.
lookup!()
protected
This will try to load any generator in the load path to show in help.
# File railties/lib/rails/generators.rb, line 371
def self.lookup! #:nodoc:
$LOAD_PATH.each do |base|
Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path|
begin
path = path.sub("#{base}/", "")
require path
rescue Exception
# No problem
end
end
end
end