X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/908a6ef409518d86bfd2cdf0d2a82a6c312821c8..406b46e49b786fab879286d77735b2a16c1cfcc5:/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