Skip to content
Browse files

Avoid deprecation warning

  • Loading branch information...
1 parent dae7b65 commit 6e5b98e9102373957d748aa084f625d2d56e02ff @jonleighton jonleighton committed Dec 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railtie.rb
View
2 activerecord/lib/active_record/railtie.rb
@@ -108,7 +108,7 @@ class Railtie < Rails::Railtie
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

0 comments on commit 6e5b98e

Please sign in to comment.
Something went wrong with that request. Please try again.