tapioca
tapioca copied to clipboard
Fix return type of ActiveRecord::QueryMethods#extract_associated
Motivation
See https://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-extract_associated - this returns an array and the return type unknown since it depends on the association passed in.
Implementation
Override when iterating over QUERY_METHODS to return the right thing seemed like the right place to hook into since it collects methods from the aforementioned Active Record module.
Tests
Updated tests.
CI is failing on unrelated protobuf errors.
@bdewater can you rebase on latest main?
@KaanOzkan CI is green now :)