mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
dup the details hash if a key has already been set for this object
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user