diff options
author | Steven Soroka <ssoroka78@gmail.com> | 2011-07-27 18:37:06 -0400 |
---|---|---|
committer | Steven Soroka <ssoroka78@gmail.com> | 2012-05-06 00:27:45 -0500 |
commit | 3532200576bed84bedf3554336dfc92ce9ce1cab (patch) | |
tree | eaa5e12876640ce05056abcefc63c5b1dddd536f /actionpack/lib/action_controller/metal/exceptions.rb | |
parent | bad119cae5ff6f3d27d82b9bdc9fc3cf4f67d271 (diff) | |
download | rails-3532200576bed84bedf3554336dfc92ce9ce1cab.tar.gz rails-3532200576bed84bedf3554336dfc92ce9ce1cab.tar.bz2 rails-3532200576bed84bedf3554336dfc92ce9ce1cab.zip |
Raise a rescuable exception when Rails doesn't know what to do with the format, rather than responding with a head :not_acceptable (406)
Diffstat (limited to 'actionpack/lib/action_controller/metal/exceptions.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/exceptions.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/exceptions.rb b/actionpack/lib/action_controller/metal/exceptions.rb index 9a9db0fe5f..90648c37ad 100644 --- a/actionpack/lib/action_controller/metal/exceptions.rb +++ b/actionpack/lib/action_controller/metal/exceptions.rb @@ -38,4 +38,7 @@ module ActionController class UnknownHttpMethod < ActionControllerError #:nodoc: end + + class UnknownFormat < ActionControllerError #:nodoc: + end end |