app/models/dataset_setting.rb
def columns_visible_sql
    if columns_visible.blank?
      ' * '
    else
      JSON.parse(columns_visible).join(', ')
    end
  end
# Returns the SELECT part of the sql query (the visible fields)
Returns the SELECT part of the sql query (the visible fields)
Returns the SELECT part of the sql query ( the visible fields )
def columns_visible_sql
    if columns_visible.blank?
      ' * '
    else
      JSON.parse(columns_visible).join(', ')
    end
  end
def columns_visible_sql if columns_visible . blank? ' * ' else JSON . parse ( columns_visible ) . join ( ', ' ) end end
Returns the SELECT part of the sql query (the visible fields)
Returns the SELECT part of the sql query ( the visible fields )