Closed KNTH01 closed 8 years ago
Thanks for the fix @konstantinzolotarev :) I had mentionned the models too :)
@KevinNTH models are working like they should, they are native to ORM so we don't want to add Model
suffix at the end (because most ORM will also add it into the table name)
Thanks @konstantinzolotarev ! Waiting travisCI results and I merge it :D
Hi,
When I create a Policy with
yo
:yo trails:policy Auth
oryo trails:policy AuthPolicy
, it's create me a file namedapi/policies/Auth.js
withAuthPolicy
class. Inapi/policies/index.js
, I haveexports.Auth = require('./Auth')
.So to use my policy :
But in the example (readme.md) there is :
I find this is not consistent regarding to the
controllers
andservices
system which addController
andService
prefix to the new generated controller or service. So when I generate a policy, I should haveAuthPolicy.js
instead ofAuth.js
isn't it ?The same note applies to
models
too.