aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/lookup_context.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb
index a119df003a..a1fa1c0b6f 100644
--- a/actionpack/lib/action_view/lookup_context.rb
+++ b/actionpack/lib/action_view/lookup_context.rb
@@ -93,14 +93,13 @@ module ActionView
# the execution of the block and reverted to the previous value after.
def update_details(new_details)
if block_given?
- old_details = @details.dup
+ old_details, old_key = @details.dup, @details_key
super
begin
yield
ensure
- @details_key = nil
- @details = old_details
+ @details, @details_key = old_details, old_key
end
else
super