Closed
Description
If you have an error in your active record model setup, you will not get very helpful messages out the system.
For example we recently encountered a scope definition that in some cases was unacceptable to Postgresql. The resulting error message gave no hint as to what the problem was.
Instead we should catch errors, and then add additional information about the active record expression being evaluated.