My 2nd attempt patching will_paginate