mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Make safe_append= live on AV::OutputBuffer not AS::SafeBuffer
Conflicts: actionpack/lib/action_view/template/handlers/erb.rb
This commit is contained in:
@@ -15,6 +15,7 @@ module ActionView
|
||||
super(value.to_s)
|
||||
end
|
||||
alias :append= :<<
|
||||
alias :safe_append= :safe_concat
|
||||
end
|
||||
|
||||
class Template
|
||||
|
||||
@@ -73,7 +73,6 @@ end
|
||||
module ActiveSupport #:nodoc:
|
||||
class SafeBuffer < String
|
||||
alias safe_concat concat
|
||||
alias safe_append= concat
|
||||
|
||||
def concat(value)
|
||||
if value.html_safe?
|
||||
|
||||
Reference in New Issue
Block a user