Sha256: 7057e3bb4a17ccda9014f719fa08f66302b78b4cc04de9d1190418bb6d27235e

Contents?: true

Size: 270 Bytes

Versions: 257

Compression:

Stored size: 270 Bytes

Contents

<script>
  promethee.filter('humanize', function() {
    return function(val) {
      val = (val + '').replace(/_/g, ' ').replace(/([A-Z])/g, ' $1').replace(/\s\s+/, ' ').trim();
      return val[0].toUpperCase() + val.substring(1).toLowerCase();
    };
  });
</script>

Version data entries

257 entries across 257 versions & 1 rubygems

Version Path
promethee-5.1.1 app/views/promethee/utils/_humanize.html.erb
promethee-5.1.0 app/views/promethee/utils/_humanize.html.erb
promethee-5.0.2 app/views/promethee/utils/_humanize.html.erb
promethee-5.0.1 app/views/promethee/utils/_humanize.html.erb
promethee-5.0.0 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.28 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.27 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.26 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.25 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.24 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.23 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.22 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.21 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.20 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.19 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.18 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.17 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.16 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.15 app/views/promethee/utils/_humanize.html.erb
promethee-4.1.14 app/views/promethee/utils/_humanize.html.erb