forked from Shopify/tapioca
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compilers::ActiveRecordRelations: Improve ordering of the signatures
- This swaps the order of the `T.untyped` and `T::Array[T.untyped]` signatures when generating RBI files for ActiveRecord methods. - Some of the methods that define a sig for `T::Array[T.untyped]`, such as `new` [1], don't support arrays as input. - More common than arrays are non-array inputs for ActiveRecord methods, so the non-array signature should come first. [1] - Shopify#1981
- Loading branch information
Showing
2 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters