Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.9: Per-controller blueprint config #576

Closed
mikermcneil opened this issue Jul 14, 2013 · 4 comments
Closed

0.9: Per-controller blueprint config #576

mikermcneil opened this issue Jul 14, 2013 · 4 comments
Milestone

Comments

@mikermcneil
Copy link
Member

ability to selectively disable/enable blueprints on certain controllers.

NtHs: [ apiPrefix, expectIntegerId ]

@mikermcneil
Copy link
Member Author

pushing to point release

@stevesims
Copy link

+1

I'm just getting started with sails and I really like the CRUD blueprint stuff, but I know that I won't want that functionality for many of my controllers. I realise that I can work around this by overriding all the CRUD actions, but doing that feels cumbersome, and I know I'll probably forget. It would be really nice if I could just add a line to say "blueprint: false" to a controller definition to disable them.

Conversely having the ability to globally disable blueprints, but then selectively enable them on individual controllers would be cool too.

@mikermcneil
Copy link
Member Author

Conversely having the ability to globally disable blueprints, but then selectively enable them on individual controllers would be cool too.

This is covered by the _config property in blueprints in the latest stable release on npm- best docs on it for now are here, when you generate a new controller: https://github.com/balderdashy/sails/blob/master/bin/boilerplates/config/controllers.js#L7

More/better documentation coming soon in general-- I'll make sure we cover this!

@stevesims
Copy link

Thanks Mike - that's exactly what I'd been hoping to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants