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