File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
actionview/lib/action_view Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ def bind_locals(locals)
26
26
# while holding the lock.
27
27
template = ( @templates [ normalized_locals ] ||= build_template ( normalized_locals ) )
28
28
29
- # This may have already been assigned, but we've already de-dup'd so
30
- # reassignment is fine.
31
- @templates [ locals . dup ] = template
32
-
33
29
if template . strict_locals?
34
30
# Under strict locals, we only need one template.
35
31
# This replaces the @templates Concurrent::Map with a hash which
36
32
# returns this template for every key.
37
33
@templates = Hash . new ( template ) . freeze
34
+ else
35
+ # This may have already been assigned, but we've already de-dup'd so
36
+ # reassignment is fine.
37
+ @templates [ locals . dup ] = template
38
38
end
39
39
end
40
40
end
You can’t perform that action at this time.
0 commit comments