Skip to content

Instantly share code, notes, and snippets.

@Lepozepo
Created July 29, 2015 22:46
Show Gist options
  • Select an option

  • Save Lepozepo/aa5011db5113d8ca789c to your computer and use it in GitHub Desktop.

Select an option

Save Lepozepo/aa5011db5113d8ca789c to your computer and use it in GitHub Desktop.

Revisions

  1. Lepozepo created this gist Jul 29, 2015.
    18 changes: 18 additions & 0 deletions inmate-search.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    Inmates.find
    $or:[
    {
    first_name:
    $regex:search
    $options:"i"
    }
    {
    last_name:
    $regex:search
    $options:"i"
    }
    {
    inmate_number:
    $regex:search
    $options:"i"
    }
    ]