Sha256: 76f230d9266fc847d2b2c22564ab4639dac28bfb11f55cd993117d119641a219

Contents?: true

Size: 446 Bytes

Versions: 14

Compression:

Stored size: 446 Bytes

Contents

module FieldTest
  module BaseHelper
    def field_test_participant_link(membership)
      if FieldTest.legacy_participants
        link_to membership.participant, legacy_participant_path(membership.participant)
      else
        text = [membership.participant_type, membership.participant_id].compact.join(" ")
        link_to text, participant_path(type: membership.participant_type, id: membership.participant_id)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
field_test-0.7.0 app/helpers/field_test/base_helper.rb
field_test-0.6.1 app/helpers/field_test/base_helper.rb
field_test-0.6.0 app/helpers/field_test/base_helper.rb
field_test-0.5.5 app/helpers/field_test/base_helper.rb
field_test-0.5.4 app/helpers/field_test/base_helper.rb
field_test-0.5.3 app/helpers/field_test/base_helper.rb
field_test-0.5.2 app/helpers/field_test/base_helper.rb
field_test-0.5.1 app/helpers/field_test/base_helper.rb
field_test-0.5.0 app/helpers/field_test/base_helper.rb
field_test-0.4.1 app/helpers/field_test/base_helper.rb
field_test-0.4.0 app/helpers/field_test/base_helper.rb
field_test-0.3.2 app/helpers/field_test/base_helper.rb
field_test-0.3.1 app/helpers/field_test/base_helper.rb
field_test-0.3.0 app/helpers/field_test/base_helper.rb