Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

where_values_hash always returns a hash

  • Loading branch information...
commit 40bc0cb34d708c109da9ee1e87f16b69cf105e1a 1 parent 9e5545c
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation.rb
View
2  activerecord/lib/active_record/relation.rb
@@ -331,7 +331,7 @@ def where_values_hash
def scope_for_create
@scope_for_create ||= begin
if @create_with_value
- @create_with_value.reverse_merge(where_values_hash || {})
+ @create_with_value.reverse_merge(where_values_hash)
else
where_values_hash
end
Please sign in to comment.
Something went wrong with that request. Please try again.