Module: SequenceRelationshipsHelper

Defined in:
app/helpers/sequence_relationships_helper.rb

Instance Method Summary collapse

Instance Method Details



7
8
9
10
# File 'app/helpers/sequence_relationships_helper.rb', line 7

def sequence_relationship_link(sequence_relationship)
  return nil if sequence_relationship.nil?
    link_to(sequence_relationship_tag(sequence_relationship.metamorphosize).html_safe, sequence_relationship.metamorphosize)
end

#sequence_relationship_tag(sequence_relationship) ⇒ Object



2
3
4
5
# File 'app/helpers/sequence_relationships_helper.rb', line 2

def sequence_relationship_tag(sequence_relationship)
  return nil if sequence_relationship.nil?
    [sequence_relationship.subject_sequence_id, sequence_relationship.object_sequence_id].join(' : ')
end

#sequence_relationships_search_formObject



12
13
14
# File 'app/helpers/sequence_relationships_helper.rb', line 12

def sequence_relationships_search_form
  render('/sequence_relationships/quick_search_form')
end