diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-13 15:26:29 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-13 15:26:29 -0800 |
commit | c7552d988e5dec76d6c515a86f73701b647aa784 (patch) | |
tree | c32fa9aeb1f1f37673c8101ce0e705c15f472316 /actionpack | |
parent | 74e46e51564b38ee0af70387634e0e4138c31742 (diff) | |
download | rails-c7552d988e5dec76d6c515a86f73701b647aa784.tar.gz rails-c7552d988e5dec76d6c515a86f73701b647aa784.tar.bz2 rails-c7552d988e5dec76d6c515a86f73701b647aa784.zip |
dup the details hash if a key has already been set for this object
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/lookup_context.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |