Added ability to use predicate methods on any type of field

The predicate methods behave just like the out-of-the-box ActiveRecord methods.