This method is only available on newer versions. The first available version (v7.2.3) is shown here.
class_names(*args)
Alias for ActionView#token_list