-
Notifications
You must be signed in to change notification settings - Fork 330
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
Commits on Aug 17, 2012
-
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 committedAug 17, 2012 Configuration menu - View commit details
-
Copy full SHA for 5e2649a - Browse repository at this point
Copy the full SHA 5e2649aView commit details
Commits on Dec 8, 2012
-
Added support to avoid
keyDestination
iffull=true
toJSON method will avoid relational configuration `includeInJSON` and `keyDestination` in case option `full=true` is included when calling the method.
Javier Chamizo committedDec 8, 2012 Configuration menu - View commit details
-
Copy full SHA for 4ebc7a6 - Browse repository at this point
Copy the full SHA 4ebc7a6View commit details
Commits on Jan 9, 2013
-
New recursiveAttributes function
It encapsulates toJSON(full=true) functionality where keyDestination is omitted
Javier Chamizo committedJan 9, 2013 Configuration menu - View commit details
-
Copy full SHA for b8438b5 - Browse repository at this point
Copy the full SHA b8438b5View commit details
Commits on Jan 10, 2013
-
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 committedJan 10, 2013 Configuration menu - View commit details
-
Copy full SHA for b23ef3a - Browse repository at this point
Copy the full SHA b23ef3aView commit details -
Added support to avoid
keyDestination
iffull=true
toJSON method will avoid relational configuration `includeInJSON` and `keyDestination` in case option `full=true` is included when calling the method.
Javier Chamizo committedJan 10, 2013 Configuration menu - View commit details
-
Copy full SHA for ad1842e - Browse repository at this point
Copy the full SHA ad1842eView commit details -
New recursiveAttributes function
It encapsulates toJSON(full=true) functionality where keyDestination is omitted
Javier Chamizo committedJan 10, 2013 Configuration menu - View commit details
-
Copy full SHA for 1b6e1ec - Browse repository at this point
Copy the full SHA 1b6e1ecView commit details -
Adapting recursiveAttributes to changes in toJSON
Javier Chamizo committedJan 10, 2013 Configuration menu - View commit details
-
Copy full SHA for dd17d02 - Browse repository at this point
Copy the full SHA dd17d02View commit details -
Merge branch 'feature/full-toJSON' of github.com:TwoApart/Backbone-re…
…lational into feature/full-toJSON Conflicts: backbone-relational.js
Javier Chamizo committedJan 10, 2013 Configuration menu - View commit details
-
Copy full SHA for 8b686e5 - Browse repository at this point
Copy the full SHA 8b686e5View commit details
Commits on Feb 25, 2013
-
BugFix: recursiveAttributes in
hasMany
relationshipsJavier Chamizo committedFeb 25, 2013 Configuration menu - View commit details
-
Copy full SHA for 82cca28 - Browse repository at this point
Copy the full SHA 82cca28View commit details