Skip to content

Instantly share code, notes, and snippets.

@mnichols
Created October 20, 2017 22:43
Show Gist options
  • Save mnichols/e25761fa12af5ca1041aee3b2a132d5a to your computer and use it in GitHub Desktop.
Save mnichols/e25761fa12af5ca1041aee3b2a132d5a to your computer and use it in GitHub Desktop.
def clean_slate(record, name)
name_parts = name.split(/\s+/)
name_parts.each do |part|
record.gsub!(/\b#{part}\b/i,"XX" * name.length)
end
return record
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment