This commit is contained in:
r888888888
2014-04-14 14:32:01 -07:00
parent 7a61048d69
commit fad0ab7c93
105 changed files with 610 additions and 485 deletions

View File

@@ -7,7 +7,7 @@ ActiveRecord::Base.connection.execute("set statement_timeout = 0")
CurrentUser.user = User.admins.first
CurrentUser.ip_addr = "127.0.0.1"
live_post_ids = Post.order("id asc").all(:select => "id").map!(&:id)
live_post_ids = Post.order("id asc").all(:select => "id").map(&:id)
all_post_ids = (1..live_post_ids.last).to_a
dead_post_ids = all_post_ids - live_post_ids