Disambiguate attributes on ActiveResource errors

13 views
Skip to first unread message

Brian Durand

unread,
Apr 18, 2011, 11:29:20 AM4/18/11
to Ruby on Rails: Core
I have submitted a patch that fixes an issue with deserializing errors
returned from the server for ActiveResource records. The code for
deserializing looks for the humanized name in the error messages to
determine which errors belong to which attribute. However, when
attributes start with the same word (i.e. "name" and "name_source"),
the errors can be assigned incorrectly.

https://rails.lighthouseapp.com/projects/8994/tickets/6713
Reply all
Reply to author
Forward
0 new messages