varvet / pundit

Minimal authorization through OO design and pure Ruby classes
MIT License
8.27k stars 629 forks source link

Add the keyword args patch to pass args to the permission methods. #765

Closed craigmcnamara closed 1 year ago

craigmcnamara commented 1 year ago

I don't think this is a good pattern, but making it work is easier than rewriting all the bad code in our app. Going to add deprecations sometime soon so we can clean it up in a controlled manner.

craigmcnamara commented 1 year ago

Whoops, this wasn't supposed to be sent to the main project.

Burgestrand commented 1 year ago

No worries, it happens 😊