'on' option to join squeel

Is there a way to add on conditions to joins in Squeel. If not, are there other alternatives for doing the same?

If you want to override the default Rails connection mappings, you can do this using the Arel on () function. Is there an equivalent call in Squeel to do the same?

Thanks.

+7
source share
1 answer

I am afraid that in Squeel there is no way to add custom join conditions without actually assigning them as part of the association you are using. If you could show me an example of use (use GitHub problems or email!), I could see how this works in version 1.0, but usually it's enough to add conditions to the where clause.

+2
source

All Articles