]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed bug in exception creation.
authorMatt Amos <zerebubuth@gmail.com>
Sat, 25 Apr 2009 15:20:48 +0000 (15:20 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Sat, 25 Apr 2009 15:20:48 +0000 (15:20 +0000)
app/models/way.rb

index 97f44c1171337375bb72166153f86be7f3837fff..6f12f4304db7fa94106dab5ccbcfea6c2875872b 100644 (file)
@@ -214,7 +214,7 @@ class Way < ActiveRecord::Base
   def create_with_history(user)
     check_create_consistency(self, user)
     unless self.preconditions_ok?
-      raise OSM::APIPreconditionFailedError("Cannot create way: data is invalid.")
+      raise OSM::APIPreconditionFailedError.new("Cannot create way: data is invalid.")
     end
     self.version = 0
     self.visible = true