From 2d20b07423e69d1aad589456a4c5e33f801fcfc1 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 18 Feb 2013 16:09:00 -0500 Subject: [PATCH] fixes #391 --- app/models/pool.rb | 2 +- app/models/post.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/pool.rb b/app/models/pool.rb index 06b46920f..d0242149f 100644 --- a/app/models/pool.rb +++ b/app/models/pool.rb @@ -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) diff --git a/app/models/post.rb b/app/models/post.rb index f3f57dc2b..83ffa2b46 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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