Browse files

Merge pull request #5241 from carlosantoniodasilva/output-safety

Stop SafeBuffer#clone_empty from issuing warnings
  • Loading branch information...
2 parents 9078dba + 681d89f commit 974a9dbaa307a1b2ed79633366270aeeac778cd4 @josevalim josevalim committed Mar 2, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 activesupport/lib/active_support/core_ext/string/output_safety.rb
View
4 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -131,9 +131,7 @@ def initialize_copy(other)
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)

0 comments on commit 974a9db

Please sign in to comment.