emberjs/website — pull request #873 by tstirrat (2013-09-13 18:49:21+00:00)
Title: Fix incorrect Ember Data 1.0 DS.attr type assignment in guides

`DS.attr({ type: Date })` gives the following error:

`Cannot call method 'deserialize' of undefined`

This is because the `tranformFor` method is expecting a string value for type, however it is receiving the supplied hash `{ type: Date }`.

I've looked at the code for master, beta1 and beta2 and it seems that all versions post 1.0 of ember data will not accept the guide's stated syntax.

Looks like the correct syntax for ember 1.0 should be as it was before. e.g. `DS.attr('type')`