Wow! This takes me back! Please check the date this post was authored, as it may no longer be relevant in a modern context.
This evening I’ve spent some time updating the tests and code of RankedModel for Rails 4. The pull request is here:
Please give it a test as you upgrade and I will make a release shortly.