Skip to content
This repository
Browse code

where_values_hash always returns a hash

  • Loading branch information...
commit 40bc0cb34d708c109da9ee1e87f16b69cf105e1a 1 parent 9e5545c
Aaron Patterson tenderlove authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/relation.rb
2  activerecord/lib/active_record/relation.rb
@@ -331,7 +331,7 @@ def where_values_hash
331 331 def scope_for_create
332 332 @scope_for_create ||= begin
333 333 if @create_with_value
334   - @create_with_value.reverse_merge(where_values_hash || {})
  334 + @create_with_value.reverse_merge(where_values_hash)
335 335 else
336 336 where_values_hash
337 337 end

0 comments on commit 40bc0cb

Please sign in to comment.
Something went wrong with that request. Please try again.