aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples')
-rw-r--r--actionpack/examples/performance.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/examples/performance.rb b/actionpack/examples/performance.rb
index 398191154c..994e745bb0 100644
--- a/actionpack/examples/performance.rb
+++ b/actionpack/examples/performance.rb
@@ -1,5 +1,4 @@
ENV['RAILS_ENV'] ||= 'production'
-ENV['NO_RELOAD'] ||= '1'
require File.expand_path('../../../load_paths', __FILE__)
require 'action_pack'
@@ -77,6 +76,10 @@ class Runner
end
end
+ActionController::Base.logger = nil
+ActionController::Base.config.compile_methods!
+ActionView::Resolver.caching = ENV["RAILS_ENV"] == "production"
+
class BasePostController < ActionController::Base
append_view_path "#{File.dirname(__FILE__)}/views"