diff options
| author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-30 18:06:56 -0800 | 
|---|---|---|
| committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-30 18:06:56 -0800 | 
| commit | 2e1132fad8fa2ab58476b9ecc30523ed02a43181 (patch) | |
| tree | 1d3997ebaa8c2900c963b4949234e77656080cc6 /actionpack/lib/action_controller | |
| parent | c69d8c043f8d0a587708fb2247b585ca93df822d (diff) | |
| download | rails-2e1132fad8fa2ab58476b9ecc30523ed02a43181.tar.gz rails-2e1132fad8fa2ab58476b9ecc30523ed02a43181.tar.bz2 rails-2e1132fad8fa2ab58476b9ecc30523ed02a43181.zip | |
Test that exceptions raised in filters are properly rescued
Diffstat (limited to 'actionpack/lib/action_controller')
| -rw-r--r-- | actionpack/lib/action_controller/base.rb | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index bc18dfaec8..aa604395a9 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1350,9 +1350,12 @@ module ActionController #:nodoc:    end    Base.class_eval do -    include Flash, Filters, Layout, Benchmarking, Rescue, MimeResponds, Helpers -    include Cookies, Caching, Verification, Streaming -    include SessionManagement, HttpAuthentication::Basic::ControllerMethods -    include RecordIdentifier, RequestForgeryProtection, Translation +    [ Flash, Filters, Layout, Benchmarking, Rescue, MimeResponds, Helpers, +      Cookies, Caching, Verification, Streaming, SessionManagement, +      HttpAuthentication::Basic::ControllerMethods, RecordIdentifier, +      RequestForgeryProtection, Translation +    ].each do |mod| +      include mod +    end    end  end | 
