Permalink
Browse files

Make safe_append= live on AV::OutputBuffer not AS::SafeBuffer

  • Loading branch information...
1 parent ea1fde6 commit f676beb647181b1b48b91db4fd27fe750e61651b @NZKoz NZKoz committed Nov 7, 2010
@@ -14,6 +14,7 @@ def <<(value)
super(value.to_s)
end
alias :append= :<<
+ alias :safe_append= :safe_concat
def append_if_string=(value)
if value.is_a?(String) && !value.is_a?(NonConcattingString)
@@ -66,7 +66,6 @@ def html_safe?
module ActiveSupport #:nodoc:
class SafeBuffer < String
alias safe_concat concat
- alias safe_append= concat
def concat(value)
if value.html_safe?

0 comments on commit f676beb

Please sign in to comment.