Sha256: 2877221e44ae960302508e6b8e549ab19fb49299de9d89a3dfbb2bc523bd4086
Contents?: true
Size: 552 Bytes
Versions: 75
Compression:
Stored size: 552 Bytes
Contents
pageflow.OtherEntry = Backbone.Model.extend({ paramRoot: 'entry', urlRoot: '/entries', modelName: 'entry', i18nKey: 'pageflow/entry', initialize: function() { this.files = {}; }, getFileCollection: function(fileType) { if (!this.files[fileType.collectionName]) { this.files[fileType.collectionName] = pageflow.FilesCollection.createForFileType(fileType, [], {entry: this}); } return this.files[fileType.collectionName]; }, titleOrSlug: function () { return this.get('title') || this.get('slug'); } });
Version data entries
75 entries across 75 versions & 1 rubygems