X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1ecf13d8461b2b0c597ba8b6492f6ffd973c61a0..c382f33e1c2e17ba00898dede1ff9c3605818f16:/app/models/node.rb?ds=sidebyside diff --git a/app/models/node.rb b/app/models/node.rb index 16e681f2c..dfc603376 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -1,6 +1,7 @@ class Node < ActiveRecord::Base require 'xml/libxml' set_table_name 'current_nodes' + validates_numericality_of :latitude validates_numericality_of :longitude