app/models/orderable.rb
# Returning an array in all cases is useful for downstream interfaces.
Returning an array in all cases is useful for downstream interfaces.
Returning an array in all cases is useful for downstream interfaces .
def model_columns
    if model
      model.column_names
    else
      []
    end
  end
def model_columns if model model . column_names else [ ] end end
Returning an array in all cases is useful for downstream interfaces.
Returning an array in all cases is useful for downstream interfaces .