aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-09-24 23:27:06 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-09-24 23:27:06 +0400
commitf9164749625df8585696857c93484a5b5e2307c6 (patch)
tree449713b9b0630b1b81fcc792b6808957e50b19f0 /activesupport
parente69011521da0a9d4559436da21ea030465e54d08 (diff)
downloadrails-f9164749625df8585696857c93484a5b5e2307c6.tar.gz
rails-f9164749625df8585696857c93484a5b5e2307c6.tar.bz2
rails-f9164749625df8585696857c93484a5b5e2307c6.zip
remove superfluous to_s in ERB::Util.html_escape
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb
index 94999807dd..2daf4016cd 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -20,7 +20,7 @@ class ERB
if s.html_safe?
s
else
- s.to_s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;").html_safe
+ s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;").html_safe
end
end