Skip to content

Commit

Permalink
Make safe_append= live on AV::OutputBuffer not AS::SafeBuffer
Browse files Browse the repository at this point in the history
Conflicts:

	actionpack/lib/action_view/template/handlers/erb.rb
  • Loading branch information
NZKoz committed Nov 7, 2010
1 parent f04ec6a commit 9ecaa80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions actionpack/lib/action_view/template/handlers/erb.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def <<(value)
super(value.to_s) super(value.to_s)
end end
alias :append= :<< alias :append= :<<
alias :safe_append= :safe_concat
end end


class Template class Template
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def html_safe?
module ActiveSupport #:nodoc: module ActiveSupport #:nodoc:
class SafeBuffer < String class SafeBuffer < String
alias safe_concat concat alias safe_concat concat
alias safe_append= concat


def concat(value) def concat(value)
if value.html_safe? if value.html_safe?
Expand Down

0 comments on commit 9ecaa80

Please sign in to comment.