fix based from TomH-Home
This commit is contained in:
parent
6efdcaa993
commit
c72f6a4182
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ class Trace < ActiveRecord::Base
|
|||
validates_inclusion_of :inserted, :in => [ true, false]
|
||||
|
||||
belongs_to :user
|
||||
has_many :tags, :class_name => 'Tracetag', :foreign_key => 'gpx_id', :dependent => :destroy
|
||||
has_many :points, :class_name => 'Tracepoint', :foreign_key => 'gpx_id', :dependent => :destroy
|
||||
has_many :tags, :class_name => 'Tracetag', :foreign_key => 'gpx_id', :dependent => :delete_all
|
||||
has_many :points, :class_name => 'Tracepoint', :foreign_key => 'gpx_id', :dependent => :delete_all
|
||||
|
||||
def tagstring=(s)
|
||||
self.tags = s.split().collect {|tag|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue