Support for classes that are not descendants of `ActiveRecord` and therefore they don't have the method `attribute_names`