X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/322d293007eb75eedae7bd6138dc5abc3143d972..62b6d159672ad29344c7b7074a37d23b16dbb5d9:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index ce856e208..da9cf0697 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -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