I'm using ActiveModel to validate some form objects in my Ruby on Rails. A simplified reproducible example looks like this:
# typed: true
class Form
include ActiveModel::Model
# ...
validates :name, presence: true
end
The issue is, Sorbet complains that validates does not exist on T.class_of(Form). Even though the RBI files are properly generated for the ActiveModel::Model module.