Rails patch 8277 06 May 2007
The synchronize functionality released in “ActiveRecord::Extensions 0.6.0”:http://www.continuousthinking.com/2007/5/6/activerecord-extensions-0-6-0-released should probably go in core. So I submitted a “patch”:http://dev.rubyonrails.org/ticket/8277

My reasoning is that is ActiveRecord::Base#reload already works on a per instance level, why not allow it work on a class level where the class can efficiently handle reloads on multiple instances at once.

The benefit of the class level reload is that you can do one query to the database regardless of how many instances you have rather then having to perform one query per instance.

If you’re in favor of the patch please encourage it gets accepted.


blog comments powered by Disqus