topics with no reply data were strings

This commit is contained in:
Neil Lalonde
2015-06-30 15:42:38 -04:00
parent 1e2e450772
commit 8e76e6e4b7
2 changed files with 2 additions and 2 deletions

View File

@ -939,7 +939,7 @@ class Topic < ActiveRecord::Base
builder.where("t.category_id = :category_id", category_id: opts[:category_id]) if opts[:category_id]
builder.where("t.archetype <> '#{Archetype.private_message}'")
builder.where("t.deleted_at IS NULL")
builder.exec.first["count"]
builder.exec.first["count"].to_i
end
private