rails/rails — pull request #15932 by joseluistorres (2014-06-27 03:58:08+00:00)
Title: adding the exception RecordNotFound to UUID find #11957

Basic change to handle UUIDS exception to fix https://github.com/rails/rails/issues/11957 and those related.
Ex.
User.find(some-non-uuid)
will trigger a RecordNotFound instead of PG::InvalidTextRepresentation
I created an app to test this as well:
https://github.com/joseluistorres/my-test-app

Please provide feedback, thanks!