]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation.rb
Rather than referring how to view a bbox history, just redirect to the global history.
[rails.git] / app / models / old_relation.rb
index ffddc7945396b72180ce5571f459c4ca8076ce25..e2a6505112fadd9b639c899cd3b5d295133e13d4 100644 (file)
@@ -4,6 +4,8 @@ class OldRelation < ActiveRecord::Base
   set_table_name 'relations'
 
   belongs_to :changeset
+  
+  validates_associated :changeset
 
   def self.from_relation(relation)
     old_relation = OldRelation.new