diff options
author | José Valim <jose.valim@gmail.com> | 2010-11-28 22:40:32 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-08 14:14:26 -0800 |
commit | 6b1018526fb304727ee4191afc2d8a5e29e49eea (patch) | |
tree | 33e57e76341028a8bd42bf8cac33b038fbd3dcf2 /actionpack/lib/action_dispatch/http/mime_type.rb | |
parent | b93c590297ba65a6c5b18655a7790163abcb06f1 (diff) | |
download | rails-6b1018526fb304727ee4191afc2d8a5e29e49eea.tar.gz rails-6b1018526fb304727ee4191afc2d8a5e29e49eea.tar.bz2 rails-6b1018526fb304727ee4191afc2d8a5e29e49eea.zip |
Use Mime::Type references.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/mime_type.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 5b87a80c1b..7c9ebe7c7b 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -216,7 +216,11 @@ module Mime end def to_sym - @symbol || @string.to_sym + @symbol + end + + def ref + to_sym || to_s end def ===(list) |