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 /activesupport | |
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 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/file_update_checker.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/i18n_railtie.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb index cd658fe173..a97e9d7daf 100644 --- a/activesupport/lib/active_support/file_update_checker.rb +++ b/activesupport/lib/active_support/file_update_checker.rb @@ -8,7 +8,7 @@ module ActiveSupport # I18n.reload! # end # - # ActionDispatch::Callbacks.to_prepare do + # ActionDispatch::Reloader.to_prepare do # i18n_reloader.execute_if_updated # end # diff --git a/activesupport/lib/active_support/i18n_railtie.rb b/activesupport/lib/active_support/i18n_railtie.rb index f8a5616a76..282337d373 100644 --- a/activesupport/lib/active_support/i18n_railtie.rb +++ b/activesupport/lib/active_support/i18n_railtie.rb @@ -19,7 +19,7 @@ module I18n # on to_prepare callbacks. This will only happen on the config.after_initialize # callback below. initializer "i18n.callbacks" do - ActionDispatch::Callbacks.to_prepare do + ActionDispatch::Reloader.to_prepare do I18n::Railtie.reloader.execute_if_updated end end |