Cleaned-up based on jonatack's suggestions in
https://github.com/activerecord-hackery/ransack/pull/341#issuecomment-36364346