HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
return Mime::NullType if format is unknown
If a request has an unknown format, the methods html?, xml?, json? ...etc not raise an Exception. This patch add a class Mime::NullType, that is returned when request.format is unknown and it responds false to the methods that ends with '?' and true to 'nil?'. It refers to #7837, this issue is considered a improvement not a bug.
- Loading branch information...
Showing with 28 additions and 3 deletions.