aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands')
-rw-r--r--railties/lib/commands/destroy.rb2
-rwxr-xr-xrailties/lib/commands/generate.rb2
-rw-r--r--railties/lib/commands/update.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/commands/destroy.rb b/railties/lib/commands/destroy.rb
index 075fe5bb12..6e740bb754 100644
--- a/railties/lib/commands/destroy.rb
+++ b/railties/lib/commands/destroy.rb
@@ -1,5 +1,5 @@
+RAILS_ENV.replace "generators"
require "#{RAILS_ROOT}/config/environment"
-require 'generators'
if ARGV.size == 0
Rails::Generators.help
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
diff --git a/railties/lib/commands/update.rb b/railties/lib/commands/update.rb
index 50b7d73e0e..5ce1068e1a 100644
--- a/railties/lib/commands/update.rb
+++ b/railties/lib/commands/update.rb
@@ -1,5 +1,5 @@
+RAILS_ENV.replace "generators"
require "#{RAILS_ROOT}/config/environment"
-require 'generators'
if ARGV.size == 0
Rails::Generators.help