Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
## 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?
From the Design Piracy series on my blog: