o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381142251.229145: @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.1.0/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-07T10:55:40+02:00;FI" length;Fi@ I" digest;F"%56c79855c06aa7595c90251c6e2cc2c8I" 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() { return this.set({ entries_custom_fields: new Locomotive.Models.CustomFieldsCollection(this.get('entries_custom_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"%e0dc9200d2248ef68da3e52283dbb6d9I"required_paths;F[I"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/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.1.0/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%72fa3f6e37cb86b8d4b1b5c95604694cI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91