tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

Tapioca generate ActiveRecord#find with T.untyped as returns type

Open tantmd opened this issue 4 years ago • 2 comments

I find this highly inconsistent, especially when it correctly generates for find_by. image

The code in question: https://github.com/Shopify/tapioca/blob/55fdade93e16dcb047af937fa9db17bd99e1d95e/lib/tapioca/dsl/compilers/active_record_relations.rb#L522-L530

Would be happy to submit a fix for this, but need someone to confirm if I overlooked something here.

tantmd avatar Aug 31 '22 07:08 tantmd

It isn't. See https://github.com/Shopify/tapioca/pull/1101

rafaelfranca avatar Sep 01 '22 15:09 rafaelfranca

Thanks for the info, I see what I overlooked now. Couldn't find that with a cursory search through issue list, so I wonder if a mentioned in README is warrented. Guess this issue is suffice for the next persone tho.

tantmd avatar Sep 01 '22 18:09 tantmd