corrected type where ApplicationController was ApplicationController::Base