my line
# genericNastyQuery returns the sql for the whole thing. I use it several ways
# inStatement is just a string
sql = genericNastyQuery("Count(User.id) as 'count' ", inStatement)
@countForUser = User.find_by_sql(sql).first.map{ |i| i.count } > 0?
|
Pastie
