ActiveRecord 2.2.2 Bug 又一
>> p = Cache::CommentsCount.for_public.rank_comments; 1
=> 1
>> p.size
=> 325
>> p.length
=> 50
>> p.size
=> 50
其實 rails bug 也不少... 之前修過幾個,後來就懶了。
這次也懶得追究了 zzz. 反正不要一開始就呼叫 size 就沒事...
==
其實我不大理解覺得 rails 沒啥問題是怎麼回事...
What have you found for these years?
>> p = Cache::CommentsCount.for_public.rank_comments; 1
=> 1
>> p.size
=> 325
>> p.length
=> 50
>> p.size
=> 50
Author: Lin Jen-Shin (godfat) at 12/30/2008 11:20:00 PM
0 retries:
Post a Comment
Note: Only a member of this blog may post a comment.