aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/performance
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-16 18:58:35 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-16 18:58:35 -0500
commitd8594026962704b6b51e188a29406fbd22bb31ce (patch)
tree60e24269b4cabaebfcf21a6c9c7b5da0f05f1f29 /railties/lib/rails/commands/performance
parent92bfc693f2293fe5d459a6edb4216594cd5a7eb2 (diff)
downloadrails-d8594026962704b6b51e188a29406fbd22bb31ce.tar.gz
rails-d8594026962704b6b51e188a29406fbd22bb31ce.tar.bz2
rails-d8594026962704b6b51e188a29406fbd22bb31ce.zip
Use Rails.initialize! where we just want to run the initializers and aren't concerned about the config
Diffstat (limited to 'railties/lib/rails/commands/performance')
-rw-r--r--railties/lib/rails/commands/performance/benchmarker.rb2
-rw-r--r--railties/lib/rails/commands/performance/profiler.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/performance/benchmarker.rb b/railties/lib/rails/commands/performance/benchmarker.rb
index 5039c5408c..5420b57311 100644
--- a/railties/lib/rails/commands/performance/benchmarker.rb
+++ b/railties/lib/rails/commands/performance/benchmarker.rb
@@ -12,7 +12,7 @@ end
require 'benchmark'
include Benchmark
-Rails.application.new
+Rails.initialize!
# Don't include compilation in the benchmark
ARGV.each { |expression| eval(expression) }
diff --git a/railties/lib/rails/commands/performance/profiler.rb b/railties/lib/rails/commands/performance/profiler.rb
index 7274e2dfb7..30346dc0e7 100644
--- a/railties/lib/rails/commands/performance/profiler.rb
+++ b/railties/lib/rails/commands/performance/profiler.rb
@@ -5,7 +5,7 @@ end
# Keep the expensive require out of the profile.
$stderr.puts 'Loading Rails...'
-Rails.application.new # Initialize the application
+Rails.initialize! # Initialize the application
# Define a method to profile.
if ARGV[1] and ARGV[1].to_i > 1