X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a7e3b58b410c2f74a69eebbe3151866a5161dc09..dd1f94e3414d1cbea71706dcb0e3a418db208efd:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 06e3dc1a1..7c4b5de18 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -2,7 +2,7 @@ class Trace < ActiveRecord::Base set_table_name 'gpx_files' belongs_to :user - has_many :tags, :class_name => 'Tracetag', :foreign_key => 'gpx_id' + has_many :tags, :class_name => 'Tracetag', :foreign_key => 'gpx_id', :dependent => :destroy def tagstring=(s) self.tags = s.split().collect {|tag|