diff options
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/perform/benchmarker.rb | 2 | ||||
-rw-r--r-- | railties/lib/commands/perform/profiler.rb | 2 |
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 |