app/controllers/course_assignment_controller.rb
# Confirms a admin logged-in user.
Confirms a admin logged-in user.
Confirms a admin logged - in user .
def admin_logged_in
        unless admin_logged_in?
            redirect_to root_url, flash: {danger: '请登陆'}
        end
    end
def admin_logged_in unless admin_logged_in? redirect_to root_url , flash : { danger : '请登陆'} end end
Confirms a admin logged-in user.
Confirms a admin logged - in user .