upgraded to jquery 1.5.1, fixed comment voting ajax

This commit is contained in:
albert
2011-03-08 18:23:16 -05:00
parent a281bf03ed
commit 2b2be3263b
12 changed files with 122 additions and 275 deletions

View File

@@ -1,6 +1,10 @@
module PoolsHelper
def recent_updated_pools(&block)
def recent_updated_pools
pool_ids = session[:recent_pool_ids].to_s.scan(/\d+/)
Pool.where(["id IN (?)", pool_ids]).each(&block) if pool_ids.any?
if pool_ids.any?
Pool.where(["id IN (?)", pool_ids])
else
[]
end
end
end