Sha256: 8a74d5157afb2f757ceaf181e07f14c48ee3448acd6bb124b1d884e3b6e64a36
Contents?: true
Size: 404 Bytes
Versions: 11
Compression:
Stored size: 404 Bytes
Contents
# ref: https://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/ LiveRecord.helpers.caseConverter = toCamel: (string) -> string.replace( /(\-[a-z])/g, ($1) -> $1.toUpperCase().replace('-','') ) toUnderscore: (string) -> string.replace( /([A-Z])/g, ($1) -> "_"+$1.toLowerCase() )
Version data entries
11 entries across 11 versions & 1 rubygems