1 2 3 4 5 6 7 8 9 10
module Auth::AllowGuests macro included skip require_sign_in end # Since sign in is not required, current_user might be nil def current_user : User? current_user? end end