Module: FieldTest::BaseHelper
- Defined in:
- app/helpers/field_test/base_helper.rb
Instance Method Summary collapse
Instance Method Details
#field_test_participant_link(membership) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/helpers/field_test/base_helper.rb', line 3 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 |