]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Added a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to...
[rails.git] / app / models / changeset.rb
index 934d75e39de953d51e9bd98221e4b1815056be81..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
@@ -71,6 +71,7 @@ class Changeset < ActiveRecord::Base
 
     Changeset.transaction do
       # fixme update modified_at time?
+      # FIXME there is no modified_at time, should it be added
       self.save!
     end