adds support for ransack versions greater than 1.2