alexeiemam
alexeiemam
Looks like there would need to be some changes to - [`CoreLogic.wrapper_and_join_constraints`](https://github.com/MaxLap/activerecord_where_assoc/blob/cf95d062229004095b8aedb591dad24f2e6ecc76/lib/active_record_where_assoc/core_logic.rb#L402-L439), with a an expansion of [this](https://github.com/MaxLap/activerecord_where_assoc/blob/cf95d062229004095b8aedb591dad24f2e6ecc76/lib/active_record_where_assoc/core_logic.rb#L427) to support multiple conditions - [`ActiveRecordCompat.join_keys`](https://github.com/MaxLap/activerecord_where_assoc/blob/cf95d062229004095b8aedb591dad24f2e6ecc76/lib/active_record_where_assoc/active_record_compat.rb#L6-L13) at least
I'll make a fork to get support going for the basic case in the test above, then I'll consider making composite-primary-key variants of each of your existing test cases to...
@MaxLap I have a candidate fix for you to review at #18 The gem's test setup is a bit more bespoke than I can add to confidently without some guidance,...