Permittribute
We sometimes face scenarios where we need same permitted attributes for a model in different controllers and end up re-writing all attributes again (violating DRY).
Permittribute is meant to:
- reuse same permitted attributes at different locations/controllers.
- scope permitted attributes base on roles like admin, api etc.
- group permitted attributes at a single reference point in their respective scopes.
Read moreā¦
Post a comment