blob: 0495ec2eec30178a6d9c04a74af5c8fb0254f505 (
plain)
1
2
3
4
5
6
7
8
|
- amount_of_acd_agents = acd_agents.count
- if amount_of_acd_agents > 0
- if amount_of_acd_agents < 30
= acd_agents.map{|acd_agent| acd_agent}.join(', ')
- else
= acd_agents.limit(15).map{|acd_agent| acd_agent}.join(', ') + ', '
= '[...]'
= acd_agents.offset(amount_of_acd_agents - 15).map{|acd_agent| acd_agent}.join(', ')
|