rails/rails — pull request #13848 by huoxito (2014-01-27 05:19:57+00:00)
Title: Display value when raising due to unscope() issues

Hopefully make it easier to debug errors. e.g

Before:

RuntimeError:
unscope(where: "deleted_at") failed: unscoping String is unimplemented.

After:

RuntimeError:
unscope(where: "deleted_at") failed: unscoping String "'t'='t'" is unimplemented.