From: Shaun McDonald Date: Mon, 13 Oct 2008 16:11:57 +0000 (+0000) Subject: fix so that changeset will be closed without an exception due to double validation X-Git-Tag: live~7573^2~272 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1d4a957c7941a8d82c5c529017de61d71067ccca fix so that changeset will be closed without an exception due to double validation --- diff --git a/app/models/changeset.rb b/app/models/changeset.rb index caa167c9e..070314e7f 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -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