Skip to content

Commit

Permalink
♻️ The namespace prefix of a model's table does not need to be plural…
Browse files Browse the repository at this point in the history
…ized
  • Loading branch information
skerit committed May 18, 2024
1 parent 32420f9 commit 07fd4eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/class/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Model.postInherit(function setModelName() {
let ns = namespace.replaceAll('.', '_');

if (!table_prefix && ns) {
table_prefix = ns.tableize();
table_prefix = ns.underscore();
}

if (ns) {
Expand Down Expand Up @@ -196,8 +196,7 @@ Model.prepareStaticProperty('ClientDocument', function getClientDocumentClass()
*/
Model.staticCompose('schema', function createSchema(doNext) {

var that = this,
model = this.compositorParent,
let model = this.compositorParent,
schema = new Classes.Alchemy.Schema();

// The base Model does not have a schema
Expand Down

0 comments on commit 07fd4eb

Please sign in to comment.