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

Commit bd0c8c63 by Sascha Depold

use pluralize if singularize is not forced

1 parent 3199319c
Showing with 1 additions and 1 deletions
...@@ -27,7 +27,7 @@ exports.Helper = function(Sequelize) { ...@@ -27,7 +27,7 @@ exports.Helper = function(Sequelize) {
}, },
addPrefix: function(prefix, string, singularize) { addPrefix: function(prefix, string, singularize) {
var _string = singularize ? Helper.Inflection.singularize(string) : string var _string = singularize ? Helper.Inflection.singularize(string) : Helper.Inflection.pluralize(string)
return prefix + _string[0].toUpperCase() + _string.replace(/^./, "") return prefix + _string[0].toUpperCase() + _string.replace(/^./, "")
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!