From 40141993f713944d9a2c471685e44ec6c83bb4ba Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 27 Mar 2019 18:54:16 +0000 Subject: [PATCH] erblint: use symbols as procs --- .erb-lint.yml | 2 -- app/views/users/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 %>
-- 2.39.5