]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Fixed precondition typo and segment_controller foreign key
[rails.git] / app / controllers / way_controller.rb
index ec8f310030a37c165f3de736f84a92a938e21aa2..fcff0fc4528678c2d760b0500ee1359738beb6ca 100644 (file)
@@ -10,7 +10,7 @@ class WayController < ApplicationController
 
       if way
         way.user_id = @user.id
-        unless way.precondtions_ok? # are the segments (and their nodes) visible?
+        unless way.preconditions_ok? # are the segments (and their nodes) visible?
           render :nothing => true, :status => 412
           return
         end