]> git.openstreetmap.org Git - rails.git/commitdiff
Actually set the instance var when closing the changeset
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 1 Dec 2008 18:47:03 +0000 (18:47 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 1 Dec 2008 18:47:03 +0000 (18:47 +0000)
app/models/changeset.rb

index 5baee2d59aabb3aa3950385eca8df939428cb22c..9dc60de485a18c0d3d7a14ca713cc396bba49392 100644 (file)
@@ -50,7 +50,7 @@ class Changeset < ActiveRecord::Base
   end
 
   def set_closed_time_now
   end
 
   def set_closed_time_now
-    closed_at = DateTime.now
+    self.closed_at = DateTime.now
   end
   
   def self.from_xml(xml, create=false)
   end
   
   def self.from_xml(xml, create=false)