Open hobbypunk90 opened 8 months ago
Hi! Thanks for the PR!
I posted a comment in the ol' issue https://github.com/varvet/pundit/issues/742#issuecomment-2026343020 about what I think we should probably do.
I'd rather avoid having to modify other methods when adding support for this, to avoid breaking existing code.
By adding a policy_class: nil
parameter to permitted_attributes
and only altering behaviour if that is passed we can probably add this feature without risking altering behaviour of existing code.
Fixes #742 again 😅
Sorry, i cleaned my github a bit too fast.