Sha256: fd2492aa1f82861db7859690b9d12c6c06de6e944f0aebaf840cdbb96a521a55

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1320143888.034576e:@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"%0af04feb637b409582b07b1f8a060f24

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
medivo-0.1.8 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.7 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.6 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.5 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.4 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.3 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.2 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
medivo-0.1.1 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6