diff options
author | John Firebaugh <john_firebaugh@us.ibm.com> | 2010-12-19 15:58:58 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-20 12:43:02 +0100 |
commit | 435bccda930e4dde3d0fafca958e1c8330b4c3ca (patch) | |
tree | d0f4eb51a6cc7cedb292da1125ed3b5eea4c7de3 /activerecord/lib/active_record | |
parent | 0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668 (diff) | |
download | rails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.tar.gz rails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.tar.bz2 rails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.zip |
Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepare
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index dfe255ad7c..ba455ea79d 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -82,7 +82,7 @@ module ActiveRecord ActiveSupport.on_load(:active_record) do instantiate_observers - ActionDispatch::Callbacks.to_prepare(:activerecord_instantiate_observers) do + ActionDispatch::Reloader.to_prepare(:activerecord_instantiate_observers) do ActiveRecord::Base.instantiate_observers end end |