Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added full relations serialization in toJSON #183

Closed
wants to merge 9 commits into from

Commits on Aug 17, 2012

  1. Added full relations serialization in toJSON

    There are some situations when we need to make toJSON work in
    different ways:
    - Communication with server where relations may be reduced to resource_uri
    - Template rendering where we need more information that the one we send to the server
    
    Adding `{full: true}` to toJSON allows to avoid `includeInJSON` params and make a full
    serialization of a model and its relations.
    Javier Chamizo committed Aug 17, 2012
    Configuration menu
    Copy the full SHA
    5e2649a View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2012

  1. Added support to avoid keyDestination if full=true

    toJSON method will avoid relational configuration `includeInJSON` and `keyDestination`
    in case option `full=true` is included when calling the method.
    Javier Chamizo committed Dec 8, 2012
    Configuration menu
    Copy the full SHA
    4ebc7a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2013

  1. New recursiveAttributes function

    It encapsulates toJSON(full=true) functionality where
    keyDestination is omitted
    Javier Chamizo committed Jan 9, 2013
    Configuration menu
    Copy the full SHA
    b8438b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2013

  1. Added full relations serialization in toJSON

    There are some situations when we need to make toJSON work in
    different ways:
    - Communication with server where relations may be reduced to resource_uri
    - Template rendering where we need more information that the one we send to the server
    
    Adding `{full: true}` to toJSON allows to avoid `includeInJSON` params and make a full
    serialization of a model and its relations.
    Javier Chamizo committed Jan 10, 2013
    Configuration menu
    Copy the full SHA
    b23ef3a View commit details
    Browse the repository at this point in the history
  2. Added support to avoid keyDestination if full=true

    toJSON method will avoid relational configuration `includeInJSON` and `keyDestination`
    in case option `full=true` is included when calling the method.
    Javier Chamizo committed Jan 10, 2013
    Configuration menu
    Copy the full SHA
    ad1842e View commit details
    Browse the repository at this point in the history
  3. New recursiveAttributes function

    It encapsulates toJSON(full=true) functionality where
    keyDestination is omitted
    Javier Chamizo committed Jan 10, 2013
    Configuration menu
    Copy the full SHA
    1b6e1ec View commit details
    Browse the repository at this point in the history
  4. Adapting recursiveAttributes to changes in toJSON

    Javier Chamizo committed Jan 10, 2013
    Configuration menu
    Copy the full SHA
    dd17d02 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'feature/full-toJSON' of github.com:TwoApart/Backbone-re…

    …lational into feature/full-toJSON
    
    Conflicts:
    	backbone-relational.js
    Javier Chamizo committed Jan 10, 2013
    Configuration menu
    Copy the full SHA
    8b686e5 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2013

  1. BugFix: recursiveAttributes in hasMany relationships

    Javier Chamizo committed Feb 25, 2013
    Configuration menu
    Copy the full SHA
    82cca28 View commit details
    Browse the repository at this point in the history