lib/dynamoid/associations/has_one.rb in dynamoid-3.1.0 vs lib/dynamoid/associations/has_one.rb in dynamoid-3.2.0

- old
+ new

@@ -15,9 +15,10 @@ # @since 0.2.0 def target_association key_name = options[:inverse_of] || source.class.to_s.singularize.underscore.to_sym guess = target_class.associations[key_name] return nil if guess.nil? || guess[:type] != :belongs_to + key_name end end end end