]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Revert "Switch to using oauth-plugin as a gem"
[rails.git] / app / models / trace.rb
index cbfd68996ff5a7944ecb5df197a01163fd670575..24f93236a7367200d6c50f8aa4eccbfdce9a32ec 100644 (file)
@@ -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