dup the details hash if a key has already been set for this object

This commit is contained in:
Aaron Patterson
2011-12-13 15:26:29 -08:00
parent 74e46e5156
commit c7552d988e

View File

@@ -85,6 +85,7 @@ module ActionView
protected
def _set_detail(key, value)
@details = @details.dup if @details_key
@details_key = nil
@details[key] = value
end