Permalink
Browse files

Merge pull request #212 from sandstrom/patch-1

Use `:` instead of `=` in transforms code example
  • Loading branch information...
2 parents b41d355 + 22d702b commit b29cd4362a7897f2c4f7fc4ac23c639f96fe2a8c @tomdale tomdale committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -99,7 +99,7 @@ can also register custom attribute types. For example, here's a `boolString`
attribute type that converts booleans into the string `"Y"` or `"N"`:
```javascript
-DS.attr.transforms.boolString: {
+DS.attr.transforms.boolString = {
from: function(serialized) {
if (serialized === 'Y') {
return true;

0 comments on commit b29cd43

Please sign in to comment.