Cancan ruby 2.7/ rails 6.0 update

Hi, I’m trying to update an application, and run into an error with the cancan gem. I’ve replaced all my before_filters in my app with before_action, but this cancan function (load_and_authorize_resource), uses the before_filter and crashes my app - looking for before_action instead.

What could I do about this?

ok, solved it using the cancancan gem.