Skip to content
Browse files

Made them actually work

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4b78e5b commit 276f14444c2cb840f7076751438dba78ce291a51 @dhh dhh committed Oct 14, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/commands/perform/benchmarker.rb
  2. +1 −1 railties/lib/commands/perform/profiler.rb
View
2 railties/lib/commands/perform/benchmarker.rb
@@ -5,7 +5,7 @@
exit
end
-require File.dirname(__FILE__) + '/../config/environment'
+require RAILS_ROOT + '/config/environment'
require 'benchmark'
include Benchmark
View
2 railties/lib/commands/perform/profiler.rb
@@ -6,7 +6,7 @@
# 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

0 comments on commit 276f144

Please sign in to comment.
Something went wrong with that request. Please try again.