gmosx / inflection

A port of the Rails/ActiveSupport inflector to JavaScript
http://www.nitrojs.org
55 stars 13 forks source link

humanize() barfs #1

Open danieldkim opened 14 years ago

danieldkim commented 14 years ago

here's the stack trace from running in node repl:

node> var humanize = require('/usr/local/src/inflection/lib/inflection').humanize;
[Function]
node> humanize('find_name')
ReferenceError: HUMANS is not defined
    at Object.<anonymous> (/usr/local/src/inflection/lib/inflection.js:199:16)
gmosx commented 14 years ago

Hm, humanize is not finished. I just added a hack implementation that may be useful to you.