Reinstate the default AR.instantiate_observers to_prepare block.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-09-26 01:29:28 +00:00
parent f08da31a4f
commit 1c68394b68
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,12 @@ module ActionController
after_dispatch :flush_logger
after_dispatch :cleanup_application
if defined? ActiveRecord
to_prepare :activerecord_instantiate_observers do
ActiveRecord::Base.instantiate_observers
end
end
def initialize(output, request = nil, response = nil)
@output, @request, @response = output, request, response
end