diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-18 16:34:16 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-19 16:33:56 -0700 |
commit | 31e488b901b6eb765ce9df049d536b950ad4a802 (patch) | |
tree | 0bcbb78b9084ec452b6cbd37c212b41c35e77fb6 /actionview | |
parent | 15b315ca9c8888a7a025b61bb56049fb8fea424f (diff) | |
download | rails-31e488b901b6eb765ce9df049d536b950ad4a802.tar.gz rails-31e488b901b6eb765ce9df049d536b950ad4a802.tar.bz2 rails-31e488b901b6eb765ce9df049d536b950ad4a802.zip |
Avoid assigning [nil] to formats
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb index ac861c44d4..5a06bd9da6 100644 --- a/actionview/lib/action_view/rendering.rb +++ b/actionview/lib/action_view/rendering.rb @@ -127,7 +127,7 @@ module ActionView # Assign the rendered format to look up context. def _process_format(format) super - lookup_context.formats = [format.to_sym] + lookup_context.formats = [format.to_sym] if format.to_sym end # Normalize args by converting render "foo" to render :action => "foo" and |