Closed Bananaeyeball closed 7 years ago
Where is ORDER BY id DESC
coming from? I don't see anything that generates this code in your snippet. Find where does it come from and change id
to acceptance_acts.id
or whatever you mean there.
ORDER BY id DESC comes to Grid filter from ActiveRecord. The most cunning is that on rails 5.0.2 the same request goes OK. But when I ONLY upgrade Rails gem to 5.1.0.rc1 filter starts to raise above exceptions. Can you look how it will behave itself with above model setup and rails 5.1? Thanks in advance!
Why does it come from filter? You don't have any order defined in filter.
Thank man, I found it! Everything works You can close this issue)
Hi Bogdan, hopefully you can review this issue soon. Those are my connected models:
When I use this filter with rails 5.1, this exeption is risen:
Thanks in advance, Looking forward to your answer!