Permalink
Browse files

where_values_hash always returns a hash

  • Loading branch information...
tenderlove committed Sep 28, 2010
1 parent 9e5545c commit 40bc0cb34d708c109da9ee1e87f16b69cf105e1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 40bc0cb

Please sign in to comment.