fix so that changeset will be closed without an exception due to double validation
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 13 Oct 2008 16:11:57 +0000 (16:11 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 13 Oct 2008 16:11:57 +0000 (16:11 +0000)
app/models/changeset.rb

index caa167c9eb19e52b32e277269820b056f918e962..070314e7f0213b9d23be5864d1287526f26c6375 100644 (file)
@@ -12,7 +12,7 @@ class Changeset < ActiveRecord::Base
   has_many :old_ways
   has_many :old_relations
   
-  validates_presence_of :user_id, :created_at, :open
+  validates_presence_of :user_id, :created_at
   validates_inclusion_of :open, :in => [ true, false ]
   
   # Use a method like this, so that we can easily change how we