From 9fd0c605b9bcfb2c2e854f3120bd3625eaa017f5 Mon Sep 17 00:00:00 2001 From: Xavier Defrang Date: Fri, 28 Jun 2013 15:37:26 +0200 Subject: Verify that route constraints respond to the expected messages instead of silently failing to enforce the constraint --- actionpack/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionpack/CHANGELOG.md') 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. -- cgit v1.2.3