Closed bhtabor closed 8 months ago
Hi! Thank you for the PR.
For me, refactoring needs to have a goal. Either by making something easier to implement, or something easier to understand.
This refactor:
It does indeed reduce duplication which could be a good thing, but in this PR it's not apparent what that might be. That's why I'm closing this without merge.
For me, refactoring needs to have a goal. Either by making something easier to implement, or something easier to understand.
Hi @Burgestrand, thank you for reviewing. The reason I chose to send a refactor PR was because the duplicate error handling in the bang methods made it seem like error handling was different for the bang methods.
Refactor pundit policy and policy_scope