This will try to load any generator in the load path to show in help.
# File railties/lib/rails/generators.rb, line 301
def self.lookup! #:nodoc:
load_generators_from_railties!
$LOAD_PATH.each do |base|
Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path|
begin
require path
rescue Exception => e
# No problem
end
end
end
end