diff options
author | Xavier Defrang <xavier.defrang@gmail.com> | 2013-06-28 15:37:26 +0200 |
---|---|---|
committer | Xavier Defrang <xavier.defrang@gmail.com> | 2013-06-28 15:54:48 +0200 |
commit | 9fd0c605b9bcfb2c2e854f3120bd3625eaa017f5 (patch) | |
tree | 3c8daeba169acbb5da53caafb0b1e5ba93e97522 /actionpack/CHANGELOG.md | |
parent | 55193e449a377c448e43d8fec42899ea1ff93b27 (diff) | |
download | rails-9fd0c605b9bcfb2c2e854f3120bd3625eaa017f5.tar.gz rails-9fd0c605b9bcfb2c2e854f3120bd3625eaa017f5.tar.bz2 rails-9fd0c605b9bcfb2c2e854f3120bd3625eaa017f5.zip |
Verify that route constraints respond to the expected messages instead of silently failing to enforce the constraint
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 05495179c3..ae9f2416f6 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,10 @@ +* Added verification of route constraints given as a Proc or an object responding + to `:matches?`. Previously, when given an non-complying object, it would just + silently fail to enforce the constraint. It will now raise an ArgumentError + when setting up the routes. + + *Xavier Defrang* + * Fix `Mime::Type.parse` when bad accepts header is looked up. Previously it was setting `request.formats` with an array containing a `nil` value, which raised an error when setting the controller formats. |