ondrejbartas/redis-model-extension — pull request #9 by mihu (2012-08-30 18:27:58+00:00)
Title: Refactored init code

It seems to me, that the code is trying to setup defaults when it's setting the first field/key. This could be done at the time, when module is included. So I've refactored it to setup default id and nil settings at the time of include.

This surprisingly revielded redefinition of class NilTestOldRedisModel in test suite (that's why the moving of this class).

Another change in test is questionable. I suppose that once you define `redis_key` you should not be able to use the `id` method.

The pull is based on previous one. So I suppose, it can be merged sequentialy or the previous one discarded.