Proper support for will_paginate and kaminari.