Updated the error message for find to stay consistent across Rails #10036

Merged
merged 1 commit into from Apr 1, 2013

Projects

None yet

2 participants

@wangjohn
wangjohn commented Apr 1, 2013

The RecordNotFound error message that is raised when using find on an association which has inverse_of defined does not match the error message that is thrown for non-inverse-of associations.

I've changed the error message to stay consistent with the error thrown for find without an
inverse_of association.

I also removed some variables that were not needed in the test cases related to the RecordNotFound error messages.

@wangjohn wangjohn closed this Apr 1, 2013
@wangjohn wangjohn Updated the error message for +find+ on an inverse_of association
so that it is consistent with the error thrown for +find+ without an
inverse_of association.
a605c44
@wangjohn wangjohn reopened this Apr 1, 2013
@rafaelfranca rafaelfranca merged commit abad4f7 into rails:master Apr 1, 2013
@wangjohn wangjohn deleted the wangjohn:norecord_error_message_consistency_issues branch Apr 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment