dm-redis-adapter 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -1
- data/lib/dm-redis-adapter/adapter.rb +1 -1
- metadata +1 -1
data/README.textile
CHANGED
@@ -14,6 +14,7 @@ Please note that as of version 0.5.3 of the gem, the key names that are used for
|
|
14
14
|
|
15
15
|
h1. Changelog
|
16
16
|
|
17
|
+
* v0.8.4 Fixes for composite keys (thanks @krider2010)
|
17
18
|
* v0.8.2 Updates to RedisAdapter#initialize to support URI. (thanks @thentenaar)
|
18
19
|
* v0.8.1 Dependency updates by @jof to support newer versions of the redis gem.
|
19
20
|
* v0.8.0 Updates by @sfeu to support composite natural keys.
|
@@ -116,4 +117,4 @@ h1. Badass contributors
|
|
116
117
|
* <a href="http://github.com/sheuer">Stephen Heuer (@sheuer)</a> Fixes to deleted assosciations
|
117
118
|
* <a href="http://github.com/snovotny">Steve Novotny (@snovotny)</a> Fixing a bug with 'destroyed' objects
|
118
119
|
* <a href="http://github.com/thecurator">Andrew Janssen (@thecurator)</a> Fixing a bug with non-index, non-key queries
|
119
|
-
* <a href="http://github.com/krider2010">Claire (@krider2010)</a> Update version of redis gem dependency
|
120
|
+
* <a href="http://github.com/krider2010">Claire (@krider2010)</a> Update version of redis gem dependency, fixes for composite keys.
|
@@ -150,7 +150,7 @@ module DataMapper
|
|
150
150
|
value =""
|
151
151
|
storage_name = query.model.storage_name
|
152
152
|
query.conditions.operands.each do |operand|
|
153
|
-
value += operand.value
|
153
|
+
value += operand.value.to_s if operand.subject.key?
|
154
154
|
end
|
155
155
|
|
156
156
|
if @redis.sismember(key_set_for(query.model), value)
|