aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:46:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:46:04 +0000
commitdbf42e379becc5612a0efe3476a999a9d6d803f0 (patch)
tree63809e19f53fc202369acae0bd027ba2352b9d2a /actionpack/lib/action_view/helpers/url_helper.rb
parente0cded2bbfc72ebbdae5b3c5926dc67f8fb59631 (diff)
downloadrails-dbf42e379becc5612a0efe3476a999a9d6d803f0.tar.gz
rails-dbf42e379becc5612a0efe3476a999a9d6d803f0.tar.bz2
rails-dbf42e379becc5612a0efe3476a999a9d6d803f0.zip
Prefer MIME constants to strings. Closes #7707.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 688790094b..dc9154dea5 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -295,7 +295,7 @@ module ActionView
for i in 0...tmp.length
string << sprintf("%%%x",tmp[i])
end
- "<script type=\"text/javascript\">eval(unescape('#{string}'))</script>"
+ "<script type=\"#{Mime::JS}\">eval(unescape('#{string}'))</script>"
elsif encode == "hex"
email_address_encoded = ''
email_address_obfuscated.each_byte do |c|