lib/dynamoid/associations/has_one.rb in dynamoid-1.2.1 vs lib/dynamoid/associations/has_one.rb in dynamoid-1.3.0
- old
+ new
@@ -22,10 +22,10 @@
# Associate a source object to this association.
#
# @since 0.2.0
def associate_target(object)
- object.update_attribute(target_attribute, Set[source.id])
+ object.update_attribute(target_attribute, Set[source.hash_key])
end
# Disassociate a source object from this association.
#
# @since 0.2.0