]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation.rb
Update to iD v2.19.3
[rails.git] / app / models / old_relation.rb
index 109f7d968da1eba835f1fbcd557048ce7cd8207b..f35678a19a262938a11f1a21198502cd27a07750 100644 (file)
@@ -20,7 +20,7 @@
 #  relations_redaction_id_fkey  (redaction_id => redactions.id)
 #
 
 #  relations_redaction_id_fkey  (redaction_id => redactions.id)
 #
 
-class OldRelation < ActiveRecord::Base
+class OldRelation < ApplicationRecord
   include ConsistencyValidations
   include ObjectMetadata
 
   include ConsistencyValidations
   include ObjectMetadata
 
@@ -86,9 +86,7 @@ class OldRelation < ActiveRecord::Base
     @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
   end
 
     @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
   end
 
-  attr_writer :members
-
-  attr_writer :tags
+  attr_writer :members, :tags
 
   def to_xml
     doc = OSM::API.new.get_xml_doc
 
   def to_xml
     doc = OSM::API.new.get_xml_doc