diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index f0f51e5176..a945e9907d 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -172,7 +172,9 @@ module ActionView end def partial_variable_name(partial_name) - partial_name.split('/').last.split('.').first.intern + @@partial_variable_names ||= {} + @@partial_variable_names[partial_name] ||= + partial_name.split('/').last.split('.').first.intern end def extracting_object(partial_name, object_assigns) |