From: Anton Khorev Date: Tue, 3 Sep 2024 01:27:07 +0000 (+0300) Subject: Remove node.tags_as_hash method X-Git-Tag: live~173^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7f9cccf0383ef1345cdbf2dbf3e38d9b060a678e?ds=sidebyside;hp=3267a3c55cee4e86cfe3e938f0ed26d4ec000e6f Remove node.tags_as_hash method --- diff --git a/app/models/node.rb b/app/models/node.rb index 825336d16..1bec9a33c 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -199,10 +199,6 @@ class Node < ApplicationRecord save_with_history! end - def tags_as_hash - tags - end - def tags @tags ||= node_tags.to_h { |t| [t.k, t.v] } end diff --git a/app/models/old_node.rb b/app/models/old_node.rb index b323f0b4f..4585ed406 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -85,10 +85,6 @@ class OldNode < ApplicationRecord attr_writer :tags - def tags_as_hash - tags - end - # Pretend we're not in any ways def ways []