Skip to content

Commit

Permalink
Avoid deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Dec 28, 2011
1 parent dae7b65 commit 6e5b98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e5b98e

Please sign in to comment.