From: Tom Hughes Date: Wed, 27 Mar 2019 18:57:04 +0000 (+0000) Subject: erblint: use word arrays X-Git-Tag: live~3233 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6afa132b84659f136d10e540196de3e428e073f1 erblint: use word arrays --- diff --git a/.erb-lint.yml b/.erb-lint.yml index 76dfdcff8..bf591777d 100644 --- a/.erb-lint.yml +++ b/.erb-lint.yml @@ -27,8 +27,6 @@ linters: Enabled: false Rails/DynamicFindBy: Enabled: false # TODO - Style/WordArray: - Enabled: false # TODO Layout/LeadingBlankLines: Enabled: false # TODO Rails/LinkToBlank: diff --git a/app/views/users/terms.html.erb b/app/views/users/terms.html.erb index a42ccd475..a93ecb0a1 100644 --- a/app/views/users/terms.html.erb +++ b/app/views/users/terms.html.erb @@ -14,7 +14,7 @@ <%= t ".legale_select" %> - <% [["france", "FR"], ["italy", "IT"], ["rest_of_world", "GB"]].each do |name, legale| %> + <% [%w[france FR], %w[italy IT], %w[rest_of_world GB]].each do |name, legale| %>