Sha256: 8cc74aee516df68551a38f164fb0e8b43125b5614d9b2a725db49eba8e782cb9
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321457843.8857951 °Þ:@value{ I"length:EFixI"digest; F"%e1f2b075304d469c58522be53ec8dad4I"source; FI"x 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(); }); ; FI" _version; F"%5a213c158b3cc0dfaef96e9a499c1b36
Version data entries
3 entries across 3 versions & 1 rubygems