diff options
author | Angelo capilleri <capilleri@yahoo.com> | 2012-10-31 14:25:51 +0100 |
---|---|---|
committer | Angelo capilleri <capilleri@yahoo.com> | 2012-10-31 15:07:37 +0100 |
commit | a8560fa361958b33d76e4468eb5c07d82a20196e (patch) | |
tree | cb8c582ce21a3a58110bd6430cd74a43204e33d4 /actionpack/CHANGELOG.md | |
parent | 65697098811af50a0191a4fce3289b24335f96f9 (diff) | |
download | rails-a8560fa361958b33d76e4468eb5c07d82a20196e.tar.gz rails-a8560fa361958b33d76e4468eb5c07d82a20196e.tar.bz2 rails-a8560fa361958b33d76e4468eb5c07d82a20196e.zip |
if format is unknown NullMimeTypeObject is returned
If a unknown format is passed in a request, the methods html?, xml?, json? ...etc
Nil Exception.
This patch add a class NullMimeTypeObject, that is returned when request.format is unknown
and it responds false to the methods that ends with '?'.
It refers to #7837, not fixes because it's not considered a improvement not a bug.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 48ba1518e0..cc042b5ac3 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* Added `NullMimeTypeObject` class. This allows to use html?, xml?, json?..etc when + the `format` of `request` is unknown. + + *Angelo Capilleri* + * `date_select` helper accepts `with_css_classes: true` to add css classes similar with type of generated select tags. |