- 22 9月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit 761bc751. This commit wasn't fixing any issue just using the same table for different models with different primary keys.
-
- 16 9月, 2012 1 次提交
-
-
由 Toshiyuki Kawanishi 提交于
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 28 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
It has been moved to active_record_deprecated_finders. Use #to_a instead.
-
- 18 7月, 2012 1 次提交
-
-
由 Oscar Del Ben 提交于
-
- 31 5月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 28 5月, 2012 1 次提交
-
-
由 Alvaro Pereyra 提交于
-
- 14 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 05 9月, 2011 1 次提交
-
-
由 Arun Agrawal 提交于
Fixes #2832
-
- 07 7月, 2011 1 次提交
-
-
由 knapo 提交于
This caused that `find_each` was producing extra db call taking all the records from db, and was less efficient than `ActiveRecord::Base#all`.
-
- 22 6月, 2011 1 次提交
-
-
由 Caius Durling 提交于
Currently if the code that calls .find_in_batches modifies the yielded array in place then .find_in_batches can enter an infinite loop searching with ruby object ids in the database instead of the primary key of records in the database. This happens because it naively assumes the yielded array hasn't been modified before calling #id on the last object in the array. And ruby (1.8 at least) alias' #id to #object_id so an integer is still returned no matter what the last object is. By moving finding the #id of the last object before yielding the array it means the calling code can do whatever it wants to the array in terms of modifying it in place, and .find_in_batches doesn't care.
-
- 30 3月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 18 2月, 2011 1 次提交
-
-
由 Nicholas Rowe 提交于
-
- 04 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
ActiveRecord::Relation#primary_key should return a string, just like ActiveRecord::Base.primary_key does.
-
- 22 9月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 11 9月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 8月, 2010 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 09 5月, 2010 2 次提交
-
-
由 Pratik Naik 提交于
-
由 Josh Kalderimis 提交于
corrected AR find_each and find_in_batches to raise when the user uses select but does not specify the primary key Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 29 3月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 28 3月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 13 2月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-