# HG changeset patch # User edogawaconan # Date 1381772992 0 # Node ID a894d7696b7efff73ad37687ae003fcac05e086a # Parent bcca41003e8432288b0354ffa84856290d422e01 More useful return of Paste.fix_all. diff -r bcca41003e84 -r a894d7696b7e app/models/paste.rb --- a/app/models/paste.rb Tue Oct 15 01:47:19 2013 +0900 +++ b/app/models/paste.rb Mon Oct 14 17:49:52 2013 +0000 @@ -52,8 +52,12 @@ end def self.fix_all + stats = Hash.new(0) self.all.each do |p| p.save + stats[:count] += 1 + stats[:private] += 1 if p.secret end + return stats end end