不要怂,就是干,撸起袖子干!

Commit 2788d645 by Sascha Depold

fixed asTableIdentifier to correctly use camelcase

1 parent a6bde800
Showing with 2 additions and 1 deletions
...@@ -22,7 +22,8 @@ exports.Helper = function(Sequelize) { ...@@ -22,7 +22,8 @@ exports.Helper = function(Sequelize) {
}, },
asTableIdentifier: function(name) { asTableIdentifier: function(name) {
return Helper.Inflection.singularize(name.toLowerCase()) + "Id" var _name = name[0].toLowerCase() + name.replace(/^./, "")
return Helper.Inflection.singularize(_name) + "Id"
}, },
addPrefix: function(prefix, string) { addPrefix: function(prefix, string) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!