diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-19 16:34:12 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-19 16:34:12 -0700 |
commit | 0756733d75cd4b9e115cc43f457c7f2731c25e1c (patch) | |
tree | 98016eb7a82e5d47e2509c2889181d3354154cbb /actionview/lib/action_view | |
parent | 31e488b901b6eb765ce9df049d536b950ad4a802 (diff) | |
download | rails-0756733d75cd4b9e115cc43f457c7f2731c25e1c.tar.gz rails-0756733d75cd4b9e115cc43f457c7f2731c25e1c.tar.bz2 rails-0756733d75cd4b9e115cc43f457c7f2731c25e1c.zip |
Don't compact formats
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/lookup_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/lookup_context.rb b/actionview/lib/action_view/lookup_context.rb index 336eaa0d8b..fd3d025cbf 100644 --- a/actionview/lib/action_view/lookup_context.rb +++ b/actionview/lib/action_view/lookup_context.rb @@ -280,7 +280,7 @@ module ActionView # add :html as fallback to :js. def formats=(values) if values - values = values.compact + values = values.dup values.concat(default_formats) if values.delete "*/*" values.uniq! |