app/assets/javascripts/collections/task_collection.js
import Task from '../models/task';
const TaskCollection = Backbone.Collection.extend({
model: Task,
url: function () {
return this.story.url() + '/tasks';
},
saved: function () {
return this.reject(function (task) {
return task.isNew();
});
},
});
export default TaskCollection;