o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984304.961674: @value"² {I" class:EFI"ProcessedAsset;FI"logical_path;FI"&locomotive/models/content_type.js;TI" pathname;FI"m/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-04-03T11:01:13+02:00;FI" length;Fi@ I" digest;F"%07699c1dbdaa00d826726575fadf5c6eI" 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"%484933b00075eed828cc0e3005974951I"required_paths;F[I"m/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI"dependency_paths;F[{I" path;FI"m/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/models/content_type.js.coffee;TI" mtime;FI"2013-04-03T11:01:13+02:00;FI" digest;F"%ebd5a5fd663f6912ba59479be7a726bdI" _version;F"%6776f581a4329e299531e1d52aa59832