fixes #391
This commit is contained in:
@@ -17,7 +17,7 @@ class Pool < ActiveRecord::Base
|
||||
|
||||
module SearchMethods
|
||||
def active
|
||||
where("is_active = true and is_deleted = false")
|
||||
where("is_deleted = false")
|
||||
end
|
||||
|
||||
def search(params)
|
||||
|
||||
@@ -521,7 +521,7 @@ class Post < ActiveRecord::Base
|
||||
def pools
|
||||
@pools ||= begin
|
||||
pool_ids = pool_string.scan(/\d+/)
|
||||
Pool.where(["is_active = true and id in (?)", pool_ids])
|
||||
Pool.where(["is_deleted = false and id in (?)", pool_ids])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user