Skip to content

Commit

Permalink
Fix class name plural bug
Browse files Browse the repository at this point in the history
  • Loading branch information
manomintis authored and manomintis committed Feb 21, 2024
1 parent 83089a3 commit 21da606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/main.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#var className = generators.modelName(entity.name)}}
{{#var fileName = string(entity.name).snakeCase().removeSuffix('resource').suffix('_resource').ext('.ts').toString()}}
{{#var className = generators.eventName(entity.name)}}
{{#var fileName = string(className).snakeCase().removeSuffix('resource').suffix('_resource').ext('.ts').toString()}}
{{{
exports({
to: app.makePath('app/resources', entity.path, fileName)
Expand Down

0 comments on commit 21da606

Please sign in to comment.