app/helpers/table_builder_helper.rb
def td_cls(a, extra_class="")
    out = [extra_class]
    if a.include? 'full-border'
      a.slice!(a.index('full-border'))

      out += a
    end
    out = out.select(&:present?).join(' ')
    out.present? ? out : nil
  end
# TODO: rename this after migration from `table_builder`
rename this after migration from `table_builder`
rename this after migration from ` table_builder `
def td_cls(a, extra_class="")
    out = [extra_class]
    if a.include? 'full-border'
      a.slice!(a.index('full-border'))
      out += a
    end
    out = out.select(&:present?).join(' ')
    out.present? ? out : nil
  end
def td_cls ( a , extra_class = "" ) out = [ extra_class ] if a . include? 'full-border' a . slice! ( a . index ( 'full-border' ) ) out += a end out = out . select ( & :present? ) . join ( ' ' ) out . present? ? out : nil end
TODO: rename this after migration from `table_builder`
TODO : rename this after migration from ` table_builder `
a
extra_class