Making SafeBuffer << an alias for concat method

[#3848 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Santiago Pastorino 2010-02-04 09:54:54 -02:00 committed by Jeremy Kemper
parent 293c53ab3e
commit c65f4b1ffb

@ -71,15 +71,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
@ -102,4 +99,4 @@ def html_safe!
def html_safe
ActiveSupport::SafeBuffer.new(self)
end
end
end