Fix new rubocop warning
This commit is contained in:
parent
6e0f4acfe1
commit
22377cbdd4
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Trace < ApplicationRecord
|
||||||
|
|
||||||
def tagstring=(s)
|
def tagstring=(s)
|
||||||
self.tags = if s.include? ","
|
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 = Tracetag.new
|
||||||
tt.tag = tag
|
tt.tag = tag
|
||||||
tt
|
tt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue