Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/collections/task_collection.js

Summary

Maintainability
A
0 mins
Test Coverage
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;