Is there a way to add "on" conditions to a joins in Squeel. If not, are there other alternate options to accomplish the same?
If you want to override Rails default join mappings, you can do it using Arel on(). Is there an equivalent call in Squeel to accomplish the same?
Thanks.
I'm afraid there's no way in Squeel to add the custom join conditions without actually assigning them as part of the association you're using. If you could show me a use case (use GitHub issues or e-mail!) I could see about getting this worked in for 1.0, but generally it's sufficient to add the conditions to the where clause.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With