X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..2038cd52c65158a9b31299c62e4beb72c61a18b7:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index cbfd68996..24f93236a 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -26,7 +26,7 @@ class Trace < ActiveRecord::Base def tagstring=(s) if s.include? ',' - self.tags = s.split(/\s*,\s*/).collect {|tag| + self.tags = s.split(/\s*,\s*/).select {|tag| tag !~ /^\s*$/}.collect {|tag| tt = Tracetag.new tt.tag = tag tt