From 7f9cccf0383ef1345cdbf2dbf3e38d9b060a678e Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 3 Sep 2024 04:27:07 +0300 Subject: [PATCH 1/1] Remove node.tags_as_hash method --- app/models/node.rb | 4 ---- app/models/old_node.rb | 4 ---- 2 files changed, 8 deletions(-) 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 [] -- 2.39.5