From 5d54b8f07cef29e932e164e23713a71274c78e49 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Thu, 15 Feb 2007 16:25:46 +0000 Subject: 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 --- actionpack/CHANGELOG | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionpack/CHANGELOG') 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] -- cgit v1.2.3