activerecord-hackery/ransack — pull request #333 by arjes (2014-01-24 14:01:02+00:00)
Title: Removing empty joins when _any suffix is used with a blank array

Pull Request #270 fixed the empty joins when no content was sent.

However if you used an additional suffix such as _any: [''] you would still get those joins.

This pull request will also delete keys with arrays if all of their keys match the existing conditions. A splat was used for readability, but the following code should accomplish the same thing:

```
(params ||= {}).delete_if { |k, v| (v.blank? && v != false) or (v.is_a?(Array) and v.all?{|i| i.blank? && i != false } }
```

This code should save a bit of processing, but isn't too readable IMHO.