make the gem compatible with will_paginate