]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Use user_account_path for links to settings page
[rails.git] / app / models / node.rb
index a5346e87f39b71f297b9b6b4948d01f271d2618e..5e799c8d9374b1562d61035b8b710f81f27a64de 100644 (file)
@@ -207,7 +207,7 @@ class Node < ApplicationRecord
   end
 
   def tags
-    @tags ||= Hash[node_tags.collect { |t| [t.k, t.v] }]
+    @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :tags