Merge pull request #5241 from carlosantoniodasilva/output-safety

Stop SafeBuffer#clone_empty from issuing warnings
This commit is contained in:
José Valim 2012-03-02 06:45:27 -08:00
commit 974a9dbaa3
1 changed files with 1 additions and 3 deletions

View File

@ -131,9 +131,7 @@ module ActiveSupport #:nodoc:
end
def clone_empty
new_safe_buffer = self[0, 0]
new_safe_buffer.instance_variable_set(:@dirty, @dirty)
new_safe_buffer
self[0, 0]
end
def concat(value)