diff options
author | José Valim <jose.valim@gmail.com> | 2010-12-23 19:20:57 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-23 19:21:14 +0100 |
commit | d6efd3cfc2c6d6822aeac550852c49135fbe46c7 (patch) | |
tree | 11e8fe3360b2385f18adf8b6a1b83e5afcd8e61c /actionpack/lib | |
parent | 819b8cae40623d26ce3c050d482b490539a25b98 (diff) | |
download | rails-d6efd3cfc2c6d6822aeac550852c49135fbe46c7.tar.gz rails-d6efd3cfc2c6d6822aeac550852c49135fbe46c7.tar.bz2 rails-d6efd3cfc2c6d6822aeac550852c49135fbe46c7.zip |
Don't deprecate to_prepare.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/callbacks.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/callbacks.rb b/actionpack/lib/action_dispatch/middleware/callbacks.rb index 5776a7bb27..4d038c29f2 100644 --- a/actionpack/lib/action_dispatch/middleware/callbacks.rb +++ b/actionpack/lib/action_dispatch/middleware/callbacks.rb @@ -1,3 +1,5 @@ +require 'active_support/core_ext/module/delegation' + module ActionDispatch # Provide callbacks to be executed before and after the request dispatch. class Callbacks @@ -5,10 +7,8 @@ module ActionDispatch define_callbacks :call, :rescuable => true - def self.to_prepare(*args, &block) - ActiveSupport::Deprecation.warn "ActionDispatch::Callbacks.to_prepare is deprecated. " << - "Please use ActionDispatch::Reloader.to_prepare instead." - ActionDispatch::Reloader.to_prepare(*args, &block) + class << self + delegate :to_prepare, :to_cleanup, :to => "ActionDispatch::Reloader" end def self.before(*args, &block) |