]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Implemented changeset tags updating via the update method.
[rails.git] / app / models / node.rb
index 391b50dcda335b4cb7ddb1e54cce2ccad1775b51..faba4ed66d5e37817fc4821c4947d76aecbc03cc 100644 (file)
@@ -267,6 +267,13 @@ class Node < ActiveRecord::Base
     @tags[k] = v
   end
 
+  ##
+  # are the preconditions OK? this is mainly here to keep the duck
+  # typing interface the same between nodes, ways and relations.
+  def preconditions_ok?
+    in_world?
+  end
+
   ##
   # dummy method to make the interfaces of node, way and relation
   # more consistent.