Permalink
Browse files

Merge pull request #13848 from huoxito/tell-value

Display value when raising due to unscope() issues
  • Loading branch information...
2 parents 5540dfc + 8b14b11 commit 3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f @carlosantoniodasilva carlosantoniodasilva committed Jan 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -877,7 +877,7 @@ def where_unscoping(target_value)
subrelation = (rel.left.kind_of?(Arel::Attributes::Attribute) ? rel.left : rel.right)
subrelation.name == target_value
else
- raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} is unimplemented."
+ raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} \"#{rel}\" is unimplemented."
end
end

0 comments on commit 3fd6329

Please sign in to comment.