Aaron Todd

Results 7 comments of Aaron Todd

Is this similar/same as https://github.com/activerecord-hackery/ransack/issues/1217 ? That issue is about table aliasing being broken under Rails 6.1

Thanks @yan-hoose you're right! I wonder if they're related in some way as in ours the problem is losing the table alias reference for the clause and in your case...

This looks related to a Rails bug. https://github.com/activerecord-hackery/ransack/issues/1217#issuecomment-878495527

Here is a fix that fixed the issues for us, but may re-introduce an eager load issue. https://github.com/activerecord-hackery/ransack/issues/1217#issuecomment-879145388

FYI I think that this may be to do with this issue in Rails https://github.com/rails/rails/issues/41498 Which links to this commit where the claim is made that an attempt to de-duplicate...

Here is a patch that might leave eager loading a little broken but does fix all of our joining issues. ActiveRecord has identified https://github.com/rails/rails/issues/41498 as a bug so hopefully they...

OS X 10.11.6 with Markright 0.1.10 here and same issue