drnic/composite_primary_keys — pull request #140 by dinshaw (2012-12-11 21:31:14+00:00)
Title: add test and fix for to_sym exception

We used to be able to reproduce this error by calling .touch on an AR instance with a cpk.
That seems to be fixed in master. However we were still seeing the exception when using Rails' accepts_nested_attributes.

Tom found a new way to expose the exception that is added in this commit, taken from the AR touch method.

The fix could def be sexier, but i wanted to keep it really obvious in case we could get some better clarity around the issue.

This addresses the same problem as https://github.com/drnic/composite_primary_keys/issues/134. #134 can be closed as a dup.