diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-09-24 23:27:06 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-09-24 23:27:06 +0400 |
commit | f9164749625df8585696857c93484a5b5e2307c6 (patch) | |
tree | 449713b9b0630b1b81fcc792b6808957e50b19f0 /activesupport/lib | |
parent | e69011521da0a9d4559436da21ea030465e54d08 (diff) | |
download | rails-f9164749625df8585696857c93484a5b5e2307c6.tar.gz rails-f9164749625df8585696857c93484a5b5e2307c6.tar.bz2 rails-f9164749625df8585696857c93484a5b5e2307c6.zip |
remove superfluous to_s in ERB::Util.html_escape
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 |
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(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<").html_safe + s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<").html_safe end end |