public
Rubygem
Description: Don't mind this, go to http://github.com/integrity/integrity
Homepage: http://integrityapp.com
Clone URL: git://github.com/foca/integrity.git
Hm, don't use Model#count, use Model#size

Change in DM's API? How didn't this bite us before?
foca (author)
Thu Nov 20 14:22:05 -0800 2008
commit  d0e298e3b50eb88a7a8b3495580235704983c264
tree    7b9b332adda80e8a95f96b02adf5d8c28f88d8c6
parent  26663031d7513ccf10bff921ef377509d713dd85
...
35
36
37
38
39
 
 
40
41
42
...
35
36
37
 
 
38
39
40
41
42
0
@@ -35,8 +35,8 @@ module Integrity
0
     end
0
 
0
     def previous_builds
0
-      return [] if builds.count <= 1
0
-      builds.all(:order => [:created_at.desc], :offset => 1, :limit => builds.count - 1)
0
+      return [] if builds.size <= 1
0
+      builds.all(:order => [:created_at.desc], :offset => 1, :limit => builds.size - 1)
0
     end
0
 
0
     def status

Comments