wvanbergen/scoped_search — Issue #20: when using external methods that returns an empty hash, incorrect SQL is generated
Author: ohadlevy
Created: 2012-03-08 11:40:42+00:00
State: open

using the following definition

```ruby
scoped_search :in => :search_parameters, :on => :value, :on_key=> :name, :complete_value => true, :rename => :params, :ext_method => :search_by_params, :only_explicit => true

def search_by_params method
{}
end
```

and while combining the search query with another query, the resulting query is something like

LINE 1: ...(("something"."name" = 'xxx') AND ())) ORDER ...