{"push_id":773397422,"size":7,"distinct_size":5,"ref":"refs/heads/master","head":"58b82e5764ac8920d0cee7505060f55b9e7853ea","before":"76f665ced009c07556e54180836e860603e0c06a","commits":[{"sha":"902e6594f0b6759b5c4be57f4728643da08c76e1","author":{"email":"7a283ce94ac3d9b8f87f2eefea422e3acc042153@gmail.com","name":"TheBox193"},"message":"toJSON include related models.\n\nTemplate frameworks like Handlebars use the results of the `toJSON` for the data that is available to them to use. I've found it convenient to include related models in the `toJSON` response almost similar to the Eager Loading idea ORMs have. This is helpful when rendering say a post, and want to include the author or react based on the type of author for instance.\r\n\r\nIn the model we just set `withJSON` with the models to be included:\r\n    var Post = Supermodel.Model.extend({\r\n        urlRoot:App.apiURL+'posts',\r\n        withJSON: ['user', 'image']\r\n    });\r\n\r\nThe toJSON function will both test if the relationship type exists, and if this model has one related. If one exists- its toJSON is called and the result is assigned to the name of the relationship.\r\n\r\nTheir might be a better option name than withJSON. Feel free to test, I thought this might be nice.","distinct":true,"url":"https://api.github.com/repos/Gywem/supermodel/commits/902e6594f0b6759b5c4be57f4728643da08c76e1"},{"sha":"1804dabd5eecbaa284ead0af80f6af70a4e7a8c2","author":{"email":"4b8373d016f277527198385ba72fda0feb5da015@pathable.com","name":"Peter T. Brown"},"message":"Merge pull request #65 from Gywem/fixTest\n\nCorrects environment and failing tests","distinct":true,"url":"https://api.github.com/repos/Gywem/supermodel/commits/1804dabd5eecbaa284ead0af80f6af70a4e7a8c2"},{"sha":"c594c460af60b8c31467438b560ed12096102b8a","author":{"email":"4b8373d016f277527198385ba72fda0feb5da015@pathable.com","name":"Peter T. Brown"},"message":"Merge pull request #61 from TheBox193/patch-1\n\ntoJSON include related models.","distinct":true,"url":"https://api.github.com/repos/Gywem/supermodel/commits/c594c460af60b8c31467438b560ed12096102b8a"},{"sha":"34bace8df378e303a4556411a73c00045d866bc6","author":{"email":"f4c105ea102fbc97af93bbe4e61208b053e0ca46@gmail.com","name":"Gywem"},"message":"Enables a Supermodel to override initialize method.","distinct":false,"url":"https://api.github.com/repos/Gywem/supermodel/commits/34bace8df378e303a4556411a73c00045d866bc6"},{"sha":"13299899be84ced2537dd32d86e26b719319490d","author":{"email":"f4c105ea102fbc97af93bbe4e61208b053e0ca46@gmail.com","name":"Gywem"},"message":"Merge branch 'master' into otherFunc\n\nConflicts:\n\tsupermodel.min.js","distinct":false,"url":"https://api.github.com/repos/Gywem/supermodel/commits/13299899be84ced2537dd32d86e26b719319490d"},{"sha":"b62af8f03b7c22255e24340064c9205b48da5438","author":{"email":"4b8373d016f277527198385ba72fda0feb5da015@pathable.com","name":"Peter T. Brown"},"message":"Merge pull request #68 from Gywem/otherFunc\n\nModification: Enables a Supermodel to override initialize method.","distinct":true,"url":"https://api.github.com/repos/Gywem/supermodel/commits/b62af8f03b7c22255e24340064c9205b48da5438"},{"sha":"58b82e5764ac8920d0cee7505060f55b9e7853ea","author":{"email":"f4c105ea102fbc97af93bbe4e61208b053e0ca46@gmail.com","name":"Nacho Codoñer Gil"},"message":"Merge pull request #2 from pathable/master\n\nMerge 'pathable/supermodel' 'master' into 'Gywem/supermodel' 'master'","distinct":true,"url":"https://api.github.com/repos/Gywem/supermodel/commits/58b82e5764ac8920d0cee7505060f55b9e7853ea"}]}