-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for cursor:
when using in_batches
on an ActiveRecord PrivateRelation
#2087
Comments
Hi @SamuelDev, what's the expected type of this cursor? Would you like to open a PR to modify one of the sigs here: tapioca/lib/tapioca/dsl/compilers/active_record_relations.rb Lines 917 to 952 in 0a9f291
|
It is a column name or array of column names. Symbols, possibly strings, unsure of that specific technicality. |
T.any(String, Symbol, T::Array[T.any(String, Symbol)]) I won't be able to investigate this myself any time soon, but if you confirm that it works and open a PR, I'd be happy to review and merge |
In 8.0 rails added support for a custom cursor when calling
in_batches
on a relation. RBI files generated by tapioca do not currently generate this field.Rails version: 8.1.0
tapioca version: 0.16.3
The text was updated successfully, but these errors were encountered: