codeforamerica/ohana-api — pull request #190 by monfresh (2014-07-24 15:51:45+00:00)
Title: Refactor text_search method.

For scopes that only take one parameter use the simplified method that loops through each parameter and uses the corresponding scope. This means we can remove the parameter presence check from the scopes.

Clean up the controller by moving the `tables` variable to a private method.