diff options
author | Sergey Novikov <novikov359@gmail.com> | 2017-09-18 22:12:51 +0200 |
---|---|---|
committer | Sergey Novikov <novikov359@gmail.com> | 2017-09-18 22:12:51 +0200 |
commit | 3b9e3ceff5a7a3a55aec400f1956f56fdbdd5efc (patch) | |
tree | a137e59ea72d80b1c9be217505917dfc295a82d3 /actionview/lib | |
parent | e4017d0288fff13be9e97335c37ebbd30d1e94ea (diff) | |
download | rails-3b9e3ceff5a7a3a55aec400f1956f56fdbdd5efc.tar.gz rails-3b9e3ceff5a7a3a55aec400f1956f56fdbdd5efc.tar.bz2 rails-3b9e3ceff5a7a3a55aec400f1956f56fdbdd5efc.zip |
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 beb0a18b65..8534eeb518 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] || {} + @locals = options[:locals] ? options[:locals].symbolize_keys : {} @details = extract_details(options) prepend_formats(options[:formats]) |