Closed jcoyne closed 3 years ago
Nevermind, I see that is the sorbet stubs that this gem uses.
I was able to workaround by adding a file to my app (sorbet/rbi/custom/action_view.rbi
) with the following.
# typed: strong
class ActionView::Helpers::FormBuilder
sig { returns(T.untyped) }
def object; end
end
Describe the bug:
This is surprising considering it appears to be defined here: https://github.com/chanzuckerberg/sorbet-rails/blob/1e9e8d0bc8e17b77f4a4f828814bb006c2bd96f3/sorbet/rbi/gems/actionview.rbi#L390
Steps to reproduce:
Reference the
object
method on an instance ofActionView::Helpers::FormBuilder
Expected behavior:
The object method is found
Versions: