I’m overwriting my authenticate method in my application controller
def authenticate_worker!
if user_signed_in? && current_user.worker?
authenticate_user!
else
super
end
end
I keep getting
wrong number of arguments (1 for 0)
app/controllers/application_controller.rb:51:in `authenticate_worker!'
Any idea what i’m missing? Thanks!
found it. It was passing
{:force=>true}Not sure what that argument does though…