I implemented pundit's built-in :verify_authorized callback incorrectly, and it's not been running. I used a lambda for the unless conditional, and I should have just used a symbol. Not sure why, but fixing it breaks a lot of tests. Not a big impact since we don't have a lot of user-facing controllers anyway, but one to tidy up.
I implemented pundit's built-in
:verify_authorized
callback incorrectly, and it's not been running. I used a lambda for theunless
conditional, and I should have just used a symbol. Not sure why, but fixing it breaks a lot of tests. Not a big impact since we don't have a lot of user-facing controllers anyway, but one to tidy up.