module DbSubsetter::TypeHelper

Utility module to help safely serialize types FIXME: nothing about this seems named correctly

Public Class Methods

cleanup_types(row) click to toggle source
# File lib/db_subsetter/type_helper.rb, line 5
def self.cleanup_types(row)
  row.map do |field|
    case field
    when Date, Time then field.to_s(:db)
    else
      field
    end
  end
end