diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-28 18:17:57 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-28 18:27:41 +0000 |
commit | 6e5b98e9102373957d748aa084f625d2d56e02ff (patch) | |
tree | fd79d05b1b71a34c635459307bc969d9d0eeaf88 | |
parent | dae7b6545372cba40e08554b9a7b2f391eaa5c6e (diff) | |
download | rails-6e5b98e9102373957d748aa084f625d2d56e02ff.tar.gz rails-6e5b98e9102373957d748aa084f625d2d56e02ff.tar.bz2 rails-6e5b98e9102373957d748aa084f625d2d56e02ff.zip |
Avoid deprecation warning
-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 08cf9fb504..165d0750dd 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -108,7 +108,7 @@ module ActiveRecord config.after_initialize do ActiveSupport.on_load(:active_record) do - instantiate_observers + ActiveRecord::Base.instantiate_observers ActionDispatch::Reloader.to_prepare do ActiveRecord::Base.instantiate_observers |