]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Update bundle
[rails.git] / app / models / relation.rb
index 5ed838e107ea270671c7551d440ad0e014be6aae..25564940bdd1a4013cf2ae3a533b3fdf2afc4bde 100644 (file)
@@ -22,7 +22,6 @@ class Relation < ApplicationRecord
 
   include ConsistencyValidations
   include NotRedactable
-  include ObjectMetadata
 
   self.table_name = "current_relations"
 
@@ -131,7 +130,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