modqueue: display pools for each post (fix #3125).

This commit is contained in:
evazion
2017-06-07 22:02:51 -05:00
parent 12fffc3760
commit 151b276fb9
4 changed files with 20 additions and 0 deletions

View File

@@ -1031,6 +1031,10 @@ class Post < ActiveRecord::Base
end
end
def has_active_pools?
pools.length > 0
end
def belongs_to_pool?(pool)
pool_string =~ /(?:\A| )pool:#{pool.id}(?:\Z| )/
end