test/models.rb in redis-model-extension-0.4.1 vs test/models.rb in redis-model-extension-0.4.2
- old
+ new
@@ -94,5 +94,16 @@
:reject_nil_values => false
}
include RedisModel
initialize_redis_model_methods REDIS_MODEL_CONF
end
+
+class WithDirty
+ include RedisModelExtension
+ include RedisModelExtension::Dirty
+
+ redis_field :first_field, :string
+ redis_field :second_field, :bool
+ redis_field :third_field, :integer
+
+ redis_key :first_field
+end