Any possible way to add parameters to ON clause on include left joins on rails?
问题 I have a huge complex query like this: @objects = Object.joins({ x: :y }).includes( [:s, { x: { y: :z } }, { l: :m },:q, :w, { important_thing: [:h, :v, :c,:l, :b, { :k [:u, :a] }] } ]).where(conditions).order("x.foo, x.bar") Then i want to show all Objects and only Important_things that were created at between two dates. If i put this on there where clause i dont get all Objects , only Objects that has Important_things between informed dates. A solution using raw sql was this: select * from