X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8bfb5cae8ad5aa2973349b128baa06d8b5ee5e7b..dee70e8daae82961ceda602a0646c4828a996965:/app/models/old_relation.rb diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index 20651f622..390c142db 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -105,6 +105,8 @@ class OldRelation < ActiveRecord::Base el1['version'] = self.version.to_s el1['changeset'] = self.changeset_id.to_s + el1['redacted'] = self.redaction.id.to_s if self.redacted? + self.old_members.each do |member| e = XML::Node.new 'member' e['type'] = member.member_type.to_s.downcase @@ -112,13 +114,14 @@ class OldRelation < ActiveRecord::Base e['role'] = member.member_role.to_s el1 << e end - + self.old_tags.each do |tag| e = XML::Node.new 'tag' e['k'] = tag.k e['v'] = tag.v el1 << e end + return el1 end