diff options
author | Ufuk Kayserilioglu <ufuk@paralaus.com> | 2019-01-24 22:08:02 +0200 |
---|---|---|
committer | Ufuk Kayserilioglu <ufuk@paralaus.com> | 2019-01-24 22:15:46 +0200 |
commit | d5fcb5b9ad4ecb271834ee5a689a1ead40290086 (patch) | |
tree | ba7f6d32976809b8bddc4ff89a2d210c22fc75fe /actionview/lib | |
parent | c1e949e9e618f75dc446ffa584c3b441c48714b1 (diff) | |
download | rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.tar.gz rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.tar.bz2 rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.zip |
Revert "Allow usage of strings as locals for partial renderer"
Diffstat (limited to 'actionview/lib')
-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]) |