Sha256: b900287059983a9eb6873689bc2ebe61a4634f7335a30c892f8893d54ae4f9fb
Contents?: true
Size: 1.17 KB
Versions: 13
Compression:
Stored size: 1.17 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320592671.798172 @:@value{ I"length:EFi¹I"digest; F"%38dd84cf556676bd12148c2807f042d6I"source; FI"¹(function() { window.isNumber = function(n) { return !isNaN(parseFloat(n)) && isFinite(n); }; String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); }; String.prototype.titleize = function() { var parts, res; res = []; parts = this.split(" "); $.each(parts, function(index, part) { return res.push(part.capitalize()); }); return res.join(" "); }; Handlebars.registerHelper("rounded", function(number) { if (isNumber(number)) { return parseFloat(number).toFixed(2); } }); Handlebars.registerHelper("titleize", function(string) { if (string !== void 0) { return string.titleize(); } }); Handlebars.registerHelper("address_without_comma", function(lab) { if (!(this.data && this.data.address)) { return; } return this.data.address.replace(/(\s*,\s*$)/g, "").titleize(); }); }).call(this); ; FI" _version; F"%ca17eb5afc7c5667dc833dc3c86bec8c
Version data entries
13 entries across 13 versions & 1 rubygems