Sha256: c5f4e0ad3fcbf623700941f9500f3f28d112928e3b0ac32e0b11d16e880e713f

Contents?: true

Size: 228 Bytes

Versions: 3

Compression:

Stored size: 228 Bytes

Contents

Ember.Handlebars.helper 'name-with-apostrophe', (name, options) ->
  if name == undefined || name[name.length - 1] == undefined
    name
  else if name[name.length - 1].toLowerCase() == 's'
    "#{name}'"
  else
    "#{name}'s"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voluntary-ember_js-0.0.4 app/assets/javascripts/voluntary/ember_js/helpers/name_with_apostrophe_helper.js.coffee
voluntary-ember_js-0.0.3 app/assets/javascripts/voluntary/ember_js/helpers/name_with_apostrophe_helper.js.coffee
voluntary-ember_js-0.0.2 app/assets/javascripts/voluntary/ember_js/helpers/name_with_apostrophe_helper.js.coffee