ernie/ransack — Issue #73: Create Ransack::Search object without querying DB
Author: hulihanapplications
Created: 2012-02-14 00:27:10+00:00
State: open

I'd like to be able to create a `Ransack::Search` object to be passed into a `search_form_for`, but the initial creation of the search object queries the database, which can add database overhead to pages with an empty search form.

Example:

```irb
> Ransack::Search.new(Product)
Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY name ASC
```

`Ransack::Search#intialize` shouldn't perform any db operations if no search terms are passed to it.