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