aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/mime_type.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-23 06:33:28 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-23 06:33:28 +0000
commit562b398fd729b05bfde4da90b91efc24dbbac49d (patch)
treec83bdedb4104bf6dd72f7842f3beecf88d27d779 /actionpack/lib/action_controller/mime_type.rb
parent28729a4829c68409717ecf82a6b407672ff5fa7d (diff)
downloadrails-562b398fd729b05bfde4da90b91efc24dbbac49d.tar.gz
rails-562b398fd729b05bfde4da90b91efc24dbbac49d.tar.bz2
rails-562b398fd729b05bfde4da90b91efc24dbbac49d.zip
Some mime type refactoring. Closes #9957 [Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/mime_type.rb')
-rw-r--r--actionpack/lib/action_controller/mime_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/mime_type.rb b/actionpack/lib/action_controller/mime_type.rb
index a0e2e70deb..ec9d2eea6d 100644
--- a/actionpack/lib/action_controller/mime_type.rb
+++ b/actionpack/lib/action_controller/mime_type.rb
@@ -1,7 +1,7 @@
module Mime
SET = []
- EXTENSION_LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k == "" }
- LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k == "" }
+ EXTENSION_LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? }
+ LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? }
# Encapsulates the notion of a mime type. Can be used at render time, for example, with:
#