Module: ProtocolRelationshipsHelper

Defined in:
app/helpers/protocol_relationships_helper.rb

Instance Method Summary (collapse)

Instance Method Details



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

def protocol_relationship_link(protocol_relationship)
  return nil if protocol_relationship.nil?
  link_to(protocol_relationship_tag(protocol_relationship), protocol_relationship)
end

- (Object) protocol_relationship_tag(protocol_relationship)



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

def protocol_relationship_tag(protocol_relationship)
  return nil if protocol_relationship.nil?
  protocol_tag(protocol_relationship.protocol) + ': ' + object_tag(protocol_relationship.protocol_relationship_object)
end

- (Object) protocol_relationships_search_form



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

def protocol_relationships_search_form
  render('/protocol_relationships/quick_search_form')
end