emberjs/data — pull request #2145 by tpitale (2014-07-31 22:04:25+00:00)
Title: Move key lookup for ajaxError into model and serializer

Moves the responsibility of looking up the key to
be used for error <=> attribute mapping into the
model's adapterDidInvalidate addError behavior and
uses the serializer to find errorKeyForAttribute/
Relationship to do the key conversion using similar
logic to serialization since the errors returned
from the active model adapter ajax call will have
keys that match the serialized form.

This has the added benefit of allowing a serializer
to override this behavior to perform key name
mapping much the way normalizeHash does inside
the serializer.