For any model I try, a query like:
Package.selecting{}.selecting{name}.first
or
Package.selecting{nil}.selecting{name}.first
fails with an error:
Arel::Visitors::UnsupportedVisitError: Unsupported argument type: NilClass. Construct an Arel node instead.
This happens when the tests in the first selecting are conditioned by an expression that happens to be false. I don't see how I can construct an Arel node in this case. Each of the two selecting works fine by itself. Similar expressions work fine with other constructs like where.has and joining, and select also works fine in squeel. So I'm hoping it's just a bug. Thanks.
For any model I try, a query like:
or
fails with an error:
This happens when the tests in the first
selectingare conditioned by an expression that happens to be false. I don't see how I can construct an Arel node in this case. Each of the twoselectingworks fine by itself. Similar expressions work fine with other constructs likewhere.hasandjoining, andselectalso works fine in squeel. So I'm hoping it's just a bug. Thanks.