Permalink
Browse files

Making SafeBuffer << an alias for concat method

  • Loading branch information...
1 parent 3926107 commit d7ee4bbcfa6e4a4be048163ceb8cca8f464026aa Santiago Pastorino and José Ignacio Costa committed with Yehuda Katz Feb 19, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -87,15 +87,12 @@ def concat(value)
super(ERB::Util.h(value))
end
end
+ alias << concat
def +(other)
dup.concat(other)
end
- def <<(value)
- self.concat(value)
- end
-
def html_safe?
true
end

0 comments on commit d7ee4bb

Please sign in to comment.