diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-19 08:02:28 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-19 08:15:49 +0100 |
commit | e49f94d71cdcdd3b891959e59203fd5e664c8add (patch) | |
tree | 84d0ec6beac626b8c42dd3a3730266805fe22f31 /actionpack/lib/action_dispatch/middleware/callbacks.rb | |
parent | e2806929ec4bc3d429011039f4b046b600b7c8f8 (diff) | |
download | rails-e49f94d71cdcdd3b891959e59203fd5e664c8add.tar.gz rails-e49f94d71cdcdd3b891959e59203fd5e664c8add.tar.bz2 rails-e49f94d71cdcdd3b891959e59203fd5e664c8add.zip |
Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure after_initializer is executed after to_prepare callbacks.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/callbacks.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/callbacks.rb b/actionpack/lib/action_dispatch/middleware/callbacks.rb index 7cf75ffe63..d07841218a 100644 --- a/actionpack/lib/action_dispatch/middleware/callbacks.rb +++ b/actionpack/lib/action_dispatch/middleware/callbacks.rb @@ -37,7 +37,7 @@ module ActionDispatch def initialize(app, prepare_each_request = false) @app, @prepare_each_request = app, prepare_each_request - run_callbacks(:prepare) unless @prepare_each_request + run_callbacks(:prepare) end def call(env) |