Given the following code in ruby/rails, block code is omitted.
Model.order(id: :desc).find_in_batches { |group| ... }
If you run this, you will get a warning.
Scoped order and limit are ignored, it's forced to be batch order and batch size
Of course we can use some custom boilerplate code to achieve this, but I wondering is there rails-way?
I have found this, but I do not see the possibility to change it is behaviour. What if I don't need asc, but I need desc.