o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396340892.531007: @value" {I" class:ETI"ProcessedAsset;FI"logical_path;TI"&locomotive/models/content_type.js;FI" pathname;TI"/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-04-01T10:04:05+02:00;TI" length;Ti I" digest;TI"%b109a535d5531f3c9a3e1906330821c4;FI" source;TI" (function() { var __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() { return ContentType.__super__.constructor.apply(this, arguments); } 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) { return this.get('entries_custom_fields').find((function(_this) { return function(field) { return field.get('name') === name; }; })(this)); }; ContentType.prototype.toJSON = function() { return _.tap(ContentType.__super__.toJSON.apply(this, arguments), (function(_this) { return 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 = ['']; } }; })(this)); }; return ContentType; })(Backbone.Model); Locomotive.Models.ContentTypesCollection = (function(_super) { __extends(ContentTypesCollection, _super); function ContentTypesCollection() { return ContentTypesCollection.__super__.constructor.apply(this, arguments); } ContentTypesCollection.prototype.model = Locomotive.Models.ContentType; ContentTypesCollection.prototype.url = "" + Locomotive.mounted_on + "/content_types"; return ContentTypesCollection; })(Backbone.Collection); }).call(this); ;TI"dependency_digest;TI"%e45185d3317cc095a51526f89070e513;FI"required_paths;T[I"/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI"dependency_paths;T[{I" path;TI"/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/assets/javascripts/locomotive/models/content_type.js.coffee;FI" mtime;TI"2014-04-01T10:04:05+02:00;TI" digest;TI"%ebab2864a5f958ce6d5318b5b81b4fde;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F