I have a controller filter that should logout a user if their account is expired, but I can't figure out an easy way to do it.
I tried:
if user_signed_in? && current_user.status == 'expired'
redirect_to destroy_user_session_path
end
But the above doesn't work, because Devise wants a DELETE action on the logout path, so you can't just redirect to it.