make the gem compatible with will_paginate
Merge pull request #13 from junwchina/master

make the gem compatible with will_paginate