]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation.rb
Add tests for member methods on relation models
[rails.git] / app / models / old_relation.rb
index 9f80a81b9fc6b1e1edd32523a93073e6fe7863af..61c49eb590e803c2857248fd76df12ff92ea5a13 100644 (file)
@@ -63,7 +63,7 @@ class OldRelation < ActiveRecord::Base
     unless @members
       @members = Array.new
       self.old_members.order(:sequence_id).each do |m|
-        @members += [[m.type,m.id,m.role]]
+        @members += [[m.member_type,m.member_id,m.member_role]]
       end
     end
     @members