]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Adding the classic_pagination to svn as the svn external is no longer working
[rails.git] / app / models / changeset.rb
index 9b92c62ead7547a6b11def8998abf608e344b793..04023ae2b94a6f883966b4aead228ac57508d439 100644 (file)
@@ -4,6 +4,13 @@ class Changeset < ActiveRecord::Base
   belongs_to :user
 
   has_many :changeset_tags, :foreign_key => 'id'
+  
+  has_many :nodes
+  has_many :ways
+  has_many :relations
+  has_many :old_nodes
+  has_many :old_ways
+  has_many :old_relations
 
   def self.from_xml(xml, create=false)
     begin
@@ -100,6 +107,7 @@ class Changeset < ActiveRecord::Base
     end
     
     el1['created_at'] = self.created_at.xmlschema
+    el1['open'] = self.open.to_s
 
     # FIXME FIXME FIXME: This does not include changes yet! There is 
     # currently no changeset_id column in the tables as far as I can tell,