X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dce4f18a3e0d952e482a911d41971893fb2d858d..c9a171c74581e0eb80794e2c9ed92e1b8faffa42:/app/models/old_node.rb?ds=sidebyside diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 42f55f2d0..6b6b71b53 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -14,12 +14,6 @@ class OldNode < ActiveRecord::Base errors.add_to_base("Node is not in the world") unless in_world? end - def in_world? - return false if self.lat < -90 or self.lat > 90 - return false if self.lon < -180 or self.lon > 180 - return true - end - def self.from_node(node) old_node = OldNode.new old_node.latitude = node.latitude @@ -90,7 +84,8 @@ class OldNode < ActiveRecord::Base def tags=(t) @tags = t - end + end + def tags_as_hash hash = {} Tags.split(self.tags) do |k,v|