aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/generate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/generate.rb')
-rwxr-xr-xrailties/lib/commands/generate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/generate.rb b/railties/lib/commands/generate.rb
index f6db965960..5408e78157 100755
--- a/railties/lib/commands/generate.rb
+++ b/railties/lib/commands/generate.rb
@@ -1,5 +1,5 @@
+RAILS_ENV.replace "generators"
require "#{RAILS_ROOT}/config/environment"
-require 'generators'
if ARGV.size == 0
Rails::Generators.help