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.
alec-c4•5h ago