Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class User COMMA = "','" # oh yeah, I went there. has_many :active_campaigns, :class_name => "Campaign", :include => { :client => :authorized_roles }, :conditions => ["roles.context_type='User' AND clients.id IN (?)", '#{client_ids.join(COMMA)}'], :foreign_key => "id IS NOT NULL AND roles.context_id", :source => :authorized end
This paste will be private.
From the Design Piracy series on my blog: