Hi everyone, I'm trying to find a way to implement a diff I found into my application (https://rails.lighthouseapp.com/projects/8994/tickets/ 2137-allow-find_batches-to-use-order-limit-and-offset). It is imperative that I use find_in_batches as well as passing an :order option to the function. Certain rows need to be processed before others, and because of the size of the table I can't do them all at once.
Now, my question is, how could I do this with the least amount of fuss? I don't want to edit the batches.rb in my Rails installation, as I then would have to do the same on servers and other workstations. I also don't particularly want to freeze Rails. I've tried just slapping a new batches.rb into /vendor/rails/activerecord/lib/active_record/, hoping that that would override just that file, but it doesn't seem to work. Any help would be appreciated! Best regards, Sebastian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

