Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tired of repeating super([:namespace, record]) in every controller when using namespaced Pundit policies? This post shows how to wrap that logic in a reusable concern for cleaner, more maintainable Rails code. One line to include, no more bracket spam.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: