o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093241.9724102: @value"_{I" class:ETI"ProcessedAsset;FI"logical_path;TI"&locomotive/models/content_type.js;FI" pathname;TI"q/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-06-26T18:24:34+02:00;TI" length;TiÍ I" digest;TI"%c163502996553d17ad5e5831099aedd6;FI" source;TI"Í (function() { var _ref, _ref1, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Locomotive.Models.ContentType = (function(_super) { __extends(ContentType, _super); function ContentType() { _ref = ContentType.__super__.constructor.apply(this, arguments); return _ref; } ContentType.prototype.paramRoot = 'content_type'; ContentType.prototype.urlRoot = "" + Locomotive.mounted_on + "/content_types"; ContentType.prototype.initialize = function() { return this._normalize(); }; ContentType.prototype._normalize = function() { var fields; fields = this.get('entries_custom_fields'); if (fields == null) { fields = []; } if (_.isArray(fields)) { return this.set({ entries_custom_fields: new Locomotive.Models.CustomFieldsCollection(fields) }); } }; ContentType.prototype.find_entries_custom_field = function(name) { var _this = this; return this.get('entries_custom_fields').find(function(field) { return field.get('name') === name; }); }; ContentType.prototype.toJSON = function() { var _this = this; return _.tap(ContentType.__super__.toJSON.apply(this, arguments), function(hash) { _.each(['label_field_id_text', 'group_by_field_id_text', 'public_submission_accounts_text', 'target_klass_name_text', 'content_type_id_text', 'public_submission_account_emails'], function(key) { return delete hash[key]; }); delete hash.entries_custom_fields; if ((_this.get('entries_custom_fields') != null) && _this.get('entries_custom_fields').length > 0) { hash.entries_custom_fields_attributes = _this.get('entries_custom_fields').toJSONForSave(); } if (_this.get('public_submission_accounts') == null) { return hash.public_submission_accounts = ['']; } }); }; return ContentType; })(Backbone.Model); Locomotive.Models.ContentTypesCollection = (function(_super) { __extends(ContentTypesCollection, _super); function ContentTypesCollection() { _ref1 = ContentTypesCollection.__super__.constructor.apply(this, arguments); return _ref1; } ContentTypesCollection.prototype.model = Locomotive.Models.ContentType; ContentTypesCollection.prototype.url = "" + Locomotive.mounted_on + "/content_types"; return ContentTypesCollection; })(Backbone.Collection); }).call(this); ;TI"dependency_digest;TI"%da2b88b2708a32f80beec4625b9e97f0;FI"required_paths;T[I"q/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI"dependency_paths;T[{I" path;TI"q/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI" mtime;TI"2013-06-26T18:24:34+02:00;TI" digest;TI"%ebab2864a5f958ce6d5318b5b81b4fde;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F