]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Merge remote-tracking branch 'upstream/pull/3233'
[rails.git] / app / models / relation.rb
index 5ed838e107ea270671c7551d440ad0e014be6aae..365ea533e11259aa3f9ae9ebc495cb990b400c10 100644 (file)
@@ -131,7 +131,7 @@ class Relation < ApplicationRecord
   end
 
   def tags
-    @tags ||= Hash[relation_tags.collect { |t| [t.k, t.v] }]
+    @tags ||= relation_tags.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :members, :tags