aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/generate
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/generate')
-rw-r--r--railties/lib/rails/commands/generate/generate_command.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/generate/generate_command.rb b/railties/lib/rails/commands/generate/generate_command.rb
index 2718b453a8..9dd7ad1012 100644
--- a/railties/lib/rails/commands/generate/generate_command.rb
+++ b/railties/lib/rails/commands/generate/generate_command.rb
@@ -3,11 +3,13 @@ require "rails/generators"
module Rails
module Command
class GenerateCommand < Base # :nodoc:
- def help
- require_application_and_environment!
- load_generators
+ no_commands do
+ def help
+ require_application_and_environment!
+ load_generators
- Rails::Generators.help self.class.command_name
+ Rails::Generators.help self.class.command_name
+ end
end
def perform(*)