Merge pull request #337 from lserman/update-meta-key-docs

Updating documentation to warn users that { root: false } will ignore the meta key
This commit is contained in:
Santiago Pastorino 2013-10-21 13:12:28 -07:00
commit 8f583d2c46

View File

@ -330,6 +330,9 @@ The above usage of `:meta_key` will produce the following:
}
```
When using meta information, your serializer cannot have the `{ root: false }` option, as this would lead to
invalid JSON. If you do not have a root key, the meta information will be ignored.
If you would like direct, low-level control of attribute serialization, you can
completely override the `attributes` method to return the hash you need: