From c7552d988e5dec76d6c515a86f73701b647aa784 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 13 Dec 2011 15:26:29 -0800 Subject: dup the details hash if a key has already been set for this object --- actionpack/lib/action_view/lookup_context.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_view/lookup_context.rb') diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb index 95478b9af6..9bf4289f42 100644 --- a/actionpack/lib/action_view/lookup_context.rb +++ b/actionpack/lib/action_view/lookup_context.rb @@ -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 -- cgit v1.2.3