Codeminer42/cm42-central

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

Summary

Maintainability
A
0 mins
Test Coverage
import Note from '../models/note';

const NoteCollection = Backbone.Collection.extend({
  model: Note,

  url: function () {
    return this.story.url() + '/notes';
  },

  saved: function () {
    return this.reject(function (note) {
      return note.isNew();
    });
  },
});

export default NoteCollection;