Skip to content

Instantly share code, notes, and snippets.

@bambuchaAdm
Created January 21, 2014 20:29
Show Gist options
  • Select an option

  • Save bambuchaAdm/8547741 to your computer and use it in GitHub Desktop.

Select an option

Save bambuchaAdm/8547741 to your computer and use it in GitHub Desktop.
Slick things
def deleteAll(value: Seq[Model]) = {
value.foldLeft(Query(this)){ (query, model: Model) =>
query.filter(_.store === model.name)
}.delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment