Sha256: 5cadd4ae588efbd7134110b8ab4fa4c43b55d094ca78903044ccfb33da56dd40

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

pageflow.OtherEntry = Backbone.Model.extend({
  paramRoot: 'entry',
  urlRoot: '/entries',
  modelName: 'entry',

  initialize: function() {
    this.imageFiles = new pageflow.ImageFilesCollection([], {entry: this});
    this.videoFiles = new pageflow.VideoFilesCollection([], {entry: this});
    this.audioFiles = new pageflow.AudioFilesCollection([], {entry: this});
  },

  titleOrSlug: function () {
    return this.get('title') || this.get('slug');
  }
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-0.1.0 app/assets/javascripts/pageflow/editor/models/other_entry.js
pageflow-0.0.5 app/assets/javascripts/pageflow/editor/models/other_entry.js
pageflow-0.0.4 app/assets/javascripts/pageflow/editor/models/other_entry.js
pageflow-0.0.3 app/assets/javascripts/pageflow/editor/models/other_entry.js
pageflow-0.0.2 app/assets/javascripts/pageflow/editor/models/other_entry.js
pageflow-0.0.1 app/assets/javascripts/pageflow/editor/models/other_entry.js