Rails 4 support

Starting from this gem since it's dependency for ransack.

Changes are simple

* remove deprecation warning
* >= for AR dependency to include rails 4

All tests pass on 3-2-stabe and master.