]> git.openstreetmap.org Git - rails.git/commitdiff
erblint: use symbols as procs
authorTom Hughes <tom@compton.nu>
Wed, 27 Mar 2019 18:54:16 +0000 (18:54 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 27 Mar 2019 18:54:16 +0000 (18:54 +0000)
.erb-lint.yml
app/views/users/show.html.erb

index 390d86ca67e8119683751469488a53e64da1d851..7ac88e42fcc4faf2da63c3fbc71cc5695ccc3512 100644 (file)
@@ -35,8 +35,6 @@ linters:
         Enabled: false # TODO
       Rails/LinkToBlank:
         Enabled: false # TODO
-      Style/SymbolProc:
-        Enabled: false # TODO
       Style/ConditionalAssignment:
         Enabled: false # TODO
 exclude:
index baf788f84b649a60aa8ec679c877789c995b7a36..9f967742eacff254ca713a7ea4c6771604e94234 100644 (file)
       <%= 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 %>
 
   <div class="activity-block column-1">