test/models.rb in redis-model-extension-0.4.0 vs test/models.rb in redis-model-extension-0.4.1
- old
+ new
@@ -79,5 +79,20 @@
end
def before_create_method
end
end
+
+class NilTestOldRedisModel
+ REDIS_MODEL_CONF = {
+ :fields => {
+ :integer => :to_i,
+ :string => :to_s,
+ },
+ :required => [:string],
+ :redis_key => [:string],
+ :redis_aliases => {},
+ :reject_nil_values => false
+ }
+ include RedisModel
+ initialize_redis_model_methods REDIS_MODEL_CONF
+end