o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093242.525522: @value"c {I" class:ETI"ProcessedAsset;FI"logical_path;TI"locomotive/models/page.js;FI" pathname;TI"i/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/page.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-11-08T17:36:43+01:00;TI" length;TiñI" digest;TI"%8d83223786fbfbda39ef328f24e031de;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.Page = (function(_super) { __extends(Page, _super); function Page() { _ref = Page.__super__.constructor.apply(this, arguments); return _ref; } Page.prototype.paramRoot = 'page'; Page.prototype.urlRoot = "" + Locomotive.mounted_on + "/pages"; Page.prototype.initialize = function() { this._normalize(); return this.set({ edit_url: "" + Locomotive.mounted_on + "/pages/" + this.id + "/edit" }); }; Page.prototype._normalize = function() { return this.set({ editable_elements: new Locomotive.Models.EditableElementsCollection(this.get('editable_elements') || []) }); }; Page.prototype.toJSON = function() { var _this = this; return _.tap(Page.__super__.toJSON.apply(this, arguments), function(hash) { _.each(['fullpath', 'localized_fullpaths', 'templatized_from_parent', 'template_changed', 'escaped_raw_template', 'target_klass_name_text', 'content_type_id_text', 'edit_url', 'parent_id_text', 'response_type_text', 'translated_in'], function(key) { return delete hash[key]; }); delete hash['editable_elements']; if ((_this.get('editable_elements') != null) && _this.get('editable_elements').length > 0) { hash.editable_elements_attributes = _this.get('editable_elements').toJSONForSave(); } delete hash['target_klass_name']; if (_this.get('templatized') === true) { return hash.target_klass_name = _this.get('target_klass_name'); } }); }; return Page; })(Backbone.Model); Locomotive.Models.PagesCollection = (function(_super) { __extends(PagesCollection, _super); function PagesCollection() { _ref1 = PagesCollection.__super__.constructor.apply(this, arguments); return _ref1; } return PagesCollection; })(Backbone.Collection); }).call(this); ;TI"dependency_digest;TI"%07dddcfc65325b5473029948b36d41cc;FI"required_paths;T[I"i/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/page.js.coffee;FI"dependency_paths;T[{I" path;TI"i/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/models/page.js.coffee;FI" mtime;TI"2013-11-08T17:36:43+01:00;TI" digest;TI"%7a948685e1363173a53821cc215919e0;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F