emberjs/data — pull request #1353 by jrallison (2013-09-24 03:40:08+00:00)
Title: ActiveModelAdapter: interpret 422 responses as invalid.

A follow up to #1278: this adds support for returning a `DS.InvalidError` for all `422` response codes when using the `DS.ActiveModelAdapter`.

I had to modify the `DS.RestAdapter` to expose an overridable method. If there's a better way to do achieve the same thing, I'm happy to rework the solution.

Thanks!