gotime-cassandra_object 2.11.6 → 2.11.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module CassandraObject
|
|
3
3
|
module Identity
|
4
4
|
class HashedNaturalKeyFactory < NaturalKeyFactory
|
5
5
|
def next_key(object)
|
6
|
-
NaturalKey.new(Digest::SHA1.hexdigest(attributes.map { |
|
6
|
+
NaturalKey.new(Digest::SHA1.hexdigest(attributes.map { |attribute| object[attribute] }.join(separator)))
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|