aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-14 03:22:18 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-14 03:22:18 +0000
commit276f14444c2cb840f7076751438dba78ce291a51 (patch)
tree3d4a5798ee8bd6bc48a7413fdced228a6456e0cb /railties
parent4b78e5bddbf75a803452fd69f077b6c1ef1c267d (diff)
downloadrails-276f14444c2cb840f7076751438dba78ce291a51.tar.gz
rails-276f14444c2cb840f7076751438dba78ce291a51.tar.bz2
rails-276f14444c2cb840f7076751438dba78ce291a51.zip
Made them actually work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/commands/perform/benchmarker.rb2
-rw-r--r--railties/lib/commands/perform/profiler.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/commands/perform/benchmarker.rb b/railties/lib/commands/perform/benchmarker.rb
index b07ddcfcb2..7e14de7cc3 100644
--- a/railties/lib/commands/perform/benchmarker.rb
+++ b/railties/lib/commands/perform/benchmarker.rb
@@ -5,7 +5,7 @@ if ARGV.empty?
exit
end
-require File.dirname(__FILE__) + '/../config/environment'
+require RAILS_ROOT + '/config/environment'
require 'benchmark'
include Benchmark
diff --git a/railties/lib/commands/perform/profiler.rb b/railties/lib/commands/perform/profiler.rb
index d84c8b739f..d0eb7b9b83 100644
--- a/railties/lib/commands/perform/profiler.rb
+++ b/railties/lib/commands/perform/profiler.rb
@@ -6,7 +6,7 @@ end
# Keep the expensive require out of the profile.
$stderr.puts 'Loading Rails...'
-require File.dirname(__FILE__) + '/../config/environment'
+require RAILS_ROOT + '/config/environment'
# Define a method to profile.
if ARGV[1] and ARGV[1].to_i > 1