o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361449319.9321599¨‚: @value"è{I" class:EFI"BundledAsset;FI"logical_path;FI"(iugu-ux/components/base_resource.js;FI" pathname;FI"…/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/iugu-ux/components/base_resource.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" length;FiÉI" digest;F"%a4cb3e33f9a019b0b6a8acc4e45a0833I" source;FI"É(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; }; window.app.BaseResource = (function(_super) { __extends(BaseResource, _super); function BaseResource() { return BaseResource.__super__.constructor.apply(this, arguments); } BaseResource.prototype.virtual_attributes = []; BaseResource.prototype.sync = function(method, model, options) { this.configureAjax(); return Backbone.sync(method, model, options); }; BaseResource.prototype.toJSON = function(options) { return _.omit(_.clone(this.attributes), this.virtual_attributes); }; BaseResource.prototype.url = function() { var base; base = BaseResource.__super__.url.apply(this, arguments); return base = this.appendLocaleInfo(base); }; BaseResource.prototype.configureAjax = function() { return app.ajaxSetup({ headers: { Authorization: $.base64.encode(api_token) } }); }; BaseResource.prototype.appendLocaleInfo = function(uri) { return uri + (uri.indexOf('?') ? '?' : '&') + 'hl=' + encodeURIComponent(i18n.locale); }; return BaseResource; })(Backbone.Model); }).call(this); ;FI"required_assets_digest;F"%68532c0ce2de6e71508047dac9d24642I" _version;F"%6776f581a4329e299531e1d52aa59832