Update foreign key naming conventions - fixes #158 #169

merged 1 commit into from Dec 22, 2012
Commits on Dec 21, 2012
  1. Append an `_id` or `_ids` suffix to associations' keys. Embed objects…

    dgeb committed Dec 9, 2012
    … in root according to their serializers' names.
    An `_id` suffix will be appended to the name of HasOne associations, while `_ids` will be appended to the singularized name of HasMany associations. Association keys can still be overridden with the `key` option.
    Furthermore, objects embedded in the root are now by default named according to their serializer, instead of the key used for their associations.