Fix new rubocop warning

This commit is contained in:
Tom Hughes 2021-09-29 18:54:56 +01:00
parent 6e0f4acfe1
commit 22377cbdd4

View file

@ -53,7 +53,7 @@ class Trace < ApplicationRecord
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