app/controllers/application_controller.rb
Missing top-level class documentation comment.class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception def authenticate_adminLine is too long. [92/80] redirect_to root_path, alert: 'Access Denied' unless current_user && current_user.admin? endend