Sha256: b6ac3b7ca20ad3fcc85d76cce00caf4dc3293932441239515c0ba7d78919cc72

Contents?: true

Size: 201 Bytes

Versions: 7

Compression:

Stored size: 201 Bytes

Contents

module FieldTest
  class Participant
    def self.standardize(participants)
      Array(participants).map { |v| v.respond_to?(:model_name) ? "#{v.model_name.name}:#{v.id}" : v.to_s }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
field_test-0.2.4 lib/field_test/participant.rb
field_test-0.2.3 lib/field_test/participant.rb
field_test-0.2.2 lib/field_test/participant.rb
field_test-0.2.1 lib/field_test/participant.rb
field_test-0.2.0 lib/field_test/participant.rb
field_test-0.1.2 lib/field_test/participant.rb
field_test-0.1.1 lib/field_test/participant.rb