diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-02-15 16:25:46 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-02-15 16:25:46 +0000 |
commit | 5d54b8f07cef29e932e164e23713a71274c78e49 (patch) | |
tree | 75b6df90d0364b86b47e1a2a25196c73bd34d7b2 /actionpack/CHANGELOG | |
parent | 5b7630e17423f6c906fb4438766463b25c6fc133 (diff) | |
download | rails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.gz rails-5d54b8f07cef29e932e164e23713a71274c78e49.tar.bz2 rails-5d54b8f07cef29e932e164e23713a71274c78e49.zip |
Add Mime::Type convenience methods to check the current mime type. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 718376d14c..6a38dd5b65 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,14 @@ *SVN* +* Add Mime::Type convenience methods to check the current mime type. [Rick] + + request.format.html? # => true if Mime::HTML + request.format.jpg? # => true if Mime::JPG + + # ActionController sample usage: + # the session will be disabled for non html/ajax requests + session :off, :if => Proc.new { |req| !(req.format.html? || req.format.js?) } + * Performance: patch cgi/session to require digest/md5 once rather than per #create_new_id. [Stefan Kaes] * Add a :url_based_filename => true option to ActionController::Streaming::send_file, which allows URL-based filenames. [Thomas Fuchs] |