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