o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381401965.904785: @value"{I" class:EFI"ProcessedAsset;FI"logical_path;FI"&locomotive/models/content_type.js;TI" pathname;FI"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-10T12:39:17+02:00;FI" length;Fi I" digest;F"%c163502996553d17ad5e5831099aedd6I" source;FI" (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;F"%da2b88b2708a32f80beec4625b9e97f0I"required_paths;F[I"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI"dependency_paths;F[{I" path;FI"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI" mtime;FI"2013-10-10T12:39:17+02:00;FI" digest;F"%ebab2864a5f958ce6d5318b5b81b4fdeI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91