aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/destroy
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin/destroy')
-rw-r--r--railties/bin/destroy3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/bin/destroy b/railties/bin/destroy
index ba6dc7703f..6c1848ce1e 100644
--- a/railties/bin/destroy
+++ b/railties/bin/destroy
@@ -1,5 +1,8 @@
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + '/../config/environment'
require 'rails_generator'
+require 'rails_generator/simple_logger'
require 'rails_generator/scripts/destroy'
+
+Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT)
Rails::Generator::Scripts::Destroy.new.run(ARGV)