Skip to content

Instantly share code, notes, and snippets.

@parthaa
Created January 18, 2013 17:18
Show Gist options
  • Save parthaa/4566254 to your computer and use it in GitHub Desktop.
Save parthaa/4566254 to your computer and use it in GitHub Desktop.
def self.unassociate_ids_from_repo(repo_id, ids)
unassociate_from_repo(repo_id, :association => {'unit_id' => {'$in' => ids}})
end
vs
def self.unassociate_ids_from_repo(repo_id, ids)
unassociate_from_repo(repo_id, :unit => {'id' => {'$in' => ids}})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment