Skip to content

Instantly share code, notes, and snippets.

@greatseth
Created October 1, 2015 15:12
Show Gist options
  • Save greatseth/04306f819f71883cd546 to your computer and use it in GitHub Desktop.
Save greatseth/04306f819f71883cd546 to your computer and use it in GitHub Desktop.
hash = JSON.parse temp
whitelist = ["employee","provider","visitor","security"]
array << hash if whitelist.include? hash["type"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment