I've noticed that passing nil inside an array in conditions generates wrong SQL. It appears that Arel is to blame. I'll pushing a patch for Arel also, if you confirm this.
Here are some failing tests.
Test that passing nil member of array in conditions retrieves records…
… with nil
value on a selected field.
@tenderlove, can you look at this?
Merged in, so I'm closing.