app/serializers/base_serializer.rb
def stringify_ids(serialized_hash)
    serialized_hash.each do |key, value|
      serialized_hash[key] = value.to_s.presence if /^id$|.*_id$/.match?(key.to_s)
    end
  end
# BIGINT can be transferred incorrectly to the front-end so it's best to send it across as a string
BIGINT can be transferred incorrectly to the front-end so it's best to send it across as a string
BIGINT can be transferred incorrectly to the front - end so it ' s best to send it across as a string
def stringify_ids(serialized_hash)
    serialized_hash.each do |key, value|
      serialized_hash[key] = value.to_s.presence if /^id$|.*_id$/.match?(key.to_s)
    end
  end
def stringify_ids ( serialized_hash ) serialized_hash . each do | key , value | serialized_hash [ key ] = value . to_s . presence if / ^id$|.*_id$ / . match? ( key . to_s ) end end
BIGINT can be transferred incorrectly to the front-end so it's best to send it across as a string
BIGINT can be transferred incorrectly to the front - end so it ' s best to send it across as a string
serialized_hash