From 276f14444c2cb840f7076751438dba78ce291a51 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 14 Oct 2005 03:22:18 +0000 Subject: Made them actually work git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/perform/profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/commands/perform/profiler.rb') 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 -- cgit v1.2.3