module Rails::Generators

def self.lookup! #:nodoc:

:nodoc:
This will try to load any generator in the load path to show in help.
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