Rails3: using Arel to make conditional searches based on conditional params
I needed simple searching on some models, and I didn’t want to use any plugin for this task, just because I’d like to try the new rails3 features, like ActiveRelation (Arel).