Class: EasyAb::Participant
- Inherits:
-
Object
- Object
- EasyAb::Participant
- Defined in:
- lib/easy_ab/participant.rb
Class Method Summary collapse
Class Method Details
.normalize(participants) ⇒ Object
3 4 5 |
# File 'lib/easy_ab/participant.rb', line 3 def self.normalize(participants) participants.map { |p| p.respond_to?(:model_name) ? "#{v.model_name.name}:#{v.id}" : v.to_s } end |