X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9544ab12b8237b4e471f03df981a189c80216c63..4d44f188e1b69d94ea9f364d85a57dcd262a93ba:/app/models/old_node.rb?ds=sidebyside 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)