]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
Fix new rubocop warnings
[rails.git] / app / models / old_way.rb
index 9acf8665d2a5fa144c927b9da2763874599f1a95..7af8906b1a9a64b36ab371ab01b62e0411af146b 100644 (file)
@@ -80,7 +80,7 @@ class OldWay < ApplicationRecord
   end
 
   def tags
-    @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h
+    @tags ||= old_tags.to_h { |t| [t.k, t.v] }
   end
 
   attr_writer :nds, :tags