rails/rails — pull request #5241 by carlosantoniodasilva (2012-03-02 14:10:45+00:00)
Title: Stop SafeBuffer#clone_empty from issuing warnings

Logic in clone_empty method was dealing with old @dirty variable, which has changed by @html_safe in this commit: https://github.com/rails/rails/commit/139963c99a955520db6373343662e55f4d16dcd1

This was issuing a "not initialized variable" warning - related to: https://github.com/rails/rails/pull/5237

The logic applied by this method is already handled by the [] override, so there is no need to reset the variable here.

/cc @tenderlove @drogus