X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9544ab12b8237b4e471f03df981a189c80216c63..821a22c6073d4b50ae7038e9c1aacbb5e68cd55a:/app/models/old_node.rb?ds=inline diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 3a0ecc367..90304acae 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -80,14 +80,7 @@ class OldNode < ActiveRecord::Base end def tags - unless @tags - @tags = Hash.new - self.old_tags.each do |tag| - @tags[tag.k] = tag.v - end - end - @tags = Hash.new unless @tags - @tags + @tags ||= Hash[self.old_tags.collect { |t| [t.k, t.v] }] end def tags=(t)