diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-01-24 17:19:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 17:19:01 -0500 |
commit | d2085f2bc497a86bb7800f34b7b958dd10550e71 (patch) | |
tree | b5f9cad6c2430348760d08d06172d3cd4836b174 /actionview/lib/action_view/renderer | |
parent | 267136d87d0d032f7a95c62f115940393e1620e5 (diff) | |
parent | 44c07fd0be1368f8388669f9d660b75eb8e49ac9 (diff) | |
download | rails-d2085f2bc497a86bb7800f34b7b958dd10550e71.tar.gz rails-d2085f2bc497a86bb7800f34b7b958dd10550e71.tar.bz2 rails-d2085f2bc497a86bb7800f34b7b958dd10550e71.zip |
Merge pull request #35045 from paracycle/uk-fix-partial-renderer
Fix partial renderer assuming `locals` responds to `symbolize_keys`
Diffstat (limited to 'actionview/lib/action_view/renderer')
-rw-r--r-- | actionview/lib/action_view/renderer/partial_renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index cb850d75ee..f175c30aa1 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -363,7 +363,7 @@ module ActionView @options = options @block = block - @locals = options[:locals] ? options[:locals].symbolize_keys : {} + @locals = options[:locals] || {} @details = extract_details(options) prepend_formats(options[:formats]) |