diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-28 15:31:03 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-28 15:31:03 -0600 |
commit | 5d89605c11cc54acadfdd76ccd226d38989ec600 (patch) | |
tree | 07a06d5b9584d8ae98f32781517007eafccd5fad /actionpack/lib/action_controller/rescue.rb | |
parent | 45dee3842d68359a189fe7c0729359bd5a905ea4 (diff) | |
download | rails-5d89605c11cc54acadfdd76ccd226d38989ec600.tar.gz rails-5d89605c11cc54acadfdd76ccd226d38989ec600.tar.bz2 rails-5d89605c11cc54acadfdd76ccd226d38989ec600.zip |
Make router and controller classes better rack citizens
Diffstat (limited to 'actionpack/lib/action_controller/rescue.rb')
-rw-r--r-- | actionpack/lib/action_controller/rescue.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index 5ef79a36ce..3a5e5071bb 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -59,7 +59,9 @@ module ActionController #:nodoc: end module ClassMethods - def process_with_exception(request, response, exception) #:nodoc: + def call_with_exception(env, exception) #:nodoc: + request = env["actioncontroller.rescue.request"] + response = env["actioncontroller.rescue.response"] new.process(request, response, :rescue_action, exception) end end |