Hello,
At guides.rubyonrails.org I read about the possibilities of find_in_batches. However I cannot find this option anywhere in the API documentation (api.rubyonrails.org).
My question: where should I look for the documentation of this command?
Hello,
At guides.rubyonrails.org I read about the possibilities of find_in_batches. However I cannot find this option anywhere in the API documentation (api.rubyonrails.org).
My question: where should I look for the documentation of this command?
http://ryandaigle.com/articles/2009/2/23/what-s-new-in-edge-rails-batched-find
http://apidock.com/rails/ActiveRecord/Batches/ClassMethods/find_in_batches
Note that this API is deprecated in Rails 3.
If this function (find_in_batches) is depreciated, what alternative is there? Same goes for the function find_each... in the current version of Rails they are still working, but for how long?
*bump*
WTF are we supposed to use in place of these methods?
*bump*
WTF are we supposed to use in place of these methods?
I don't think it is deprecated. However, it moved (it's now at find_in_batches (ActiveRecord::Batches) - APIdock) and it looks like apidock couldn't work out that it moved rather than vanish.
Fred