More model validations. Fixing one test.
[rails.git] / app / models / old_way.rb
index ce856e208d00072bbcef3d1531029dcb667e0e2e..da9cf0697104ecea39d12db601d17f26e1be8cec 100644 (file)
@@ -5,6 +5,8 @@ class OldWay < ActiveRecord::Base
 
   belongs_to :changeset
 
+  validates_associated :changeset
+  
   def self.from_way(way)
     old_way = OldWay.new
     old_way.visible = way.visible