diff options
Diffstat (limited to 'railties/lib/rails/commands/generate/generate_command.rb')
-rw-r--r-- | railties/lib/rails/commands/generate/generate_command.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/generate/generate_command.rb b/railties/lib/rails/commands/generate/generate_command.rb index aa8dab71b0..93d7a0ce3a 100644 --- a/railties/lib/rails/commands/generate/generate_command.rb +++ b/railties/lib/rails/commands/generate/generate_command.rb @@ -1,10 +1,17 @@ +# frozen_string_literal: true + require "rails/generators" module Rails module Command class GenerateCommand < Base # :nodoc: - def help - Rails::Generators.help self.class.command_name + no_commands do + def help + require_application_and_environment! + load_generators + + Rails::Generators.help self.class.command_name + end end def perform(*) |