Skip to content

Commit 3fd6329

Browse files
Merge pull request rails#13848 from huoxito/tell-value
Display value when raising due to unscope() issues
2 parents 5540dfc + 8b14b11 commit 3fd6329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def where_unscoping(target_value)
877877
subrelation = (rel.left.kind_of?(Arel::Attributes::Attribute) ? rel.left : rel.right)
878878
subrelation.name == target_value
879879
else
880-
raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} is unimplemented."
880+
raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} \"#{rel}\" is unimplemented."
881881
end
882882
end
883883

0 commit comments

Comments
 (0)