Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making SafeBuffer << an alias for concat method

  • Loading branch information...
commit d7ee4bbcfa6e4a4be048163ceb8cca8f464026aa 1 parent 3926107
Santiago Pastorino and José Ignacio Costa authored Yehuda Katz committed
5 activesupport/lib/active_support/core_ext/string/output_safety.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.