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