Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

script/performance/benchmarker should require environment

  • Loading branch information...
commit 2f7217c76a68b048b15d2b8d821a2aa569ef924a 1 parent 7635c9f
@josh josh authored
View
3  railties/lib/rails/commands/performance/benchmarker.rb
@@ -12,7 +12,6 @@
require 'benchmark'
include Benchmark
-Rails.initialize!
# Don't include compilation in the benchmark
ARGV.each { |expression| eval(expression) }
@@ -21,4 +20,4 @@
ARGV.each_with_index do |expression, idx|
x.report("##{idx + 1}") { N.times { eval(expression) } }
end
-end
+end
View
2  railties/lib/rails/generators/rails/app/templates/script/performance/benchmarker.tt
@@ -1,3 +1,3 @@
<%= shebang %>
-require File.expand_path('../../../config/application', __FILE__)
+require File.expand_path('../../../config/environment', __FILE__)
require 'rails/commands/performance/benchmarker'
Please sign in to comment.
Something went wrong with that request. Please try again.