diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-14 03:59:14 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-14 03:59:14 -0700 |
commit | e7e1d83ddfceeddd890ecd251bf81e18d3b553cb (patch) | |
tree | 09dcc1168aa65b89b645471f9b1ffa1845a3efd7 /activerecord | |
parent | c4837f6ce3f9864c4b98c9051f99e1f0b428f9d6 (diff) | |
download | rails-e7e1d83ddfceeddd890ecd251bf81e18d3b553cb.tar.gz rails-e7e1d83ddfceeddd890ecd251bf81e18d3b553cb.tar.bz2 rails-e7e1d83ddfceeddd890ecd251bf81e18d3b553cb.zip |
Added some docs to controller runtime.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/controller_runtime.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/controller_runtime.rb b/activerecord/lib/active_record/railties/controller_runtime.rb index a0eecf4f46..9e3b3429e4 100644 --- a/activerecord/lib/active_record/railties/controller_runtime.rb +++ b/activerecord/lib/active_record/railties/controller_runtime.rb @@ -2,7 +2,7 @@ require 'active_support/core_ext/module/attr_internal' module ActiveRecord module Railties - module ControllerRuntime + module ControllerRuntime #:nodoc: extend ActiveSupport::Concern protected @@ -10,6 +10,9 @@ module ActiveRecord attr_internal :db_runtime def process_action(action, *args) + # We also need to reset the runtime before each action + # because of queries in middleware or in cases we are streaming + # and it won't be cleaned up by the method below. ActiveRecord::LogSubscriber.reset_runtime super end |