X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..c1b65d11fd71d3801f4f5e42a3c40dc872a766f9:/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