X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/986f1c61fa115b7cfd5bef4a108c984da79fec85..3d55db46ed24d563d82cf42f91fd064e40447c4d:/app/models/node.rb?ds=sidebyside diff --git a/app/models/node.rb b/app/models/node.rb index 3de6e154c..70c6fb880 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -35,7 +35,7 @@ class Node < ActiveRecord::Base # Sanity check the latitude and longitude and add an error if it's broken def validate_position - errors.add_to_base("Node is not in the world") unless in_world? + errors.add(:base, "Node is not in the world") unless in_world? end #