From: Tom Hughes Date: Wed, 27 Mar 2019 18:54:16 +0000 (+0000) Subject: erblint: use symbols as procs X-Git-Tag: live~3235 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/40141993f713944d9a2c471685e44ec6c83bb4ba erblint: use symbols as procs --- diff --git a/.erb-lint.yml b/.erb-lint.yml index 390d86ca6..7ac88e42f 100644 --- a/.erb-lint.yml +++ b/.erb-lint.yml @@ -35,8 +35,6 @@ linters: Enabled: false # TODO Rails/LinkToBlank: Enabled: false # TODO - Style/SymbolProc: - Enabled: false # TODO Style/ConditionalAssignment: Enabled: false # TODO exclude: diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index baf788f84..9f967742e 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -196,7 +196,7 @@ <%= content_tag "div", "", :id => "map", :class => "content_map", :data => { :user => user_data } %> <% end %> - <% friends = @user.friends.collect { |f| f.befriendee } %> + <% friends = @user.friends.collect(&:befriendee) %> <% nearby = @user.nearby - friends %>