Skip to content

Instantly share code, notes, and snippets.

@servidorv
Created November 8, 2012 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save servidorv/4040274 to your computer and use it in GitHub Desktop.
Save servidorv/4040274 to your computer and use it in GitHub Desktop.
removes
duplicated beeing the array
def remove_duplicated(duplicated)
duplicated.each{|users|
users.uniq{|k, v| v["id"]}
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment