Fix various rubocop issues.

This commit is contained in:
evazion
2020-01-11 19:01:40 -06:00
parent bab656a873
commit aff3d3b18f
15 changed files with 24 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ class TableBuilder
@block = block
@name = name || attribute
@name = @name.to_s.titleize unless @name.kind_of?(String)
@name = @name.to_s.titleize unless @name.is_a?(String)
if @name.present?
column_class = "#{@name.parameterize.dasherize}-column"
@@ -22,7 +22,7 @@ class TableBuilder
if block.present?
block.call(item, i, j, self)
nil
elsif attribute.kind_of?(Symbol)
elsif attribute.is_a?(Symbol)
item.send(attribute)
else
""