Closed antonyhell closed 8 years ago
Backbone-relational can define the way how to serialize model into JSON using relations. So by using method "toJSON" instead of accessing attributes property it's impossible to access some relations (e.g. if relation has includeInJSON : 'id').
+1
Hey guys, could you please accept it? (:
Backbone-relational can define the way how to serialize model into JSON using relations. So by using method "toJSON" instead of accessing attributes property it's impossible to access some relations (e.g. if relation has includeInJSON : 'id').