mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added some docs to controller runtime.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user