]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation.rb
Enable some rails 7.x defaults
[rails.git] / app / models / old_relation.rb
index d0a03ac25b01baf942480f6b6e5f3124d846575c..29edb90adbee10227fab1f6fdff38ec788e661ac 100644 (file)
@@ -82,7 +82,7 @@ class OldRelation < 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 :members, :tags