]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Bump actions/checkout from 2.3.5 to 2.4.0
[rails.git] / app / models / trace.rb
index 0860d2b31954e1a3d255594650b071443399f702..b3d87fc0947be767264db9300b5426b909375415 100644 (file)
@@ -53,7 +53,7 @@ class Trace < ApplicationRecord
 
   def tagstring=(s)
     self.tags = if s.include? ","
 
   def tagstring=(s)
     self.tags = if s.include? ","
-                  s.split(/\s*,\s*/).reject { |tag| tag =~ /^\s*$/ }.collect do |tag|
+                  s.split(/\s*,\s*/).grep_v(/^\s*$/).collect do |tag|
                     tt = Tracetag.new
                     tt.tag = tag
                     tt
                     tt = Tracetag.new
                     tt.tag = tag
                     tt