Making SafeBuffer << an alias for concat method
[#3848 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user