Module: BiologicalAssociationsGraphsHelper

Defined in:
app/helpers/biological_associations_graphs_helper.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
11
12
# File 'app/helpers/biological_associations_graphs_helper.rb', line 8

def biological_associations_graph_link(biological_associations_graph)
  return nil if biological_associations_graph.nil?
  a = biological_associations_graph_tag(biological_associations_graph)
  link_to(a.html_safe, biological_associations_graph)
end

#biological_associations_graph_tag(biological_associations_graph) ⇒ Object



3
4
5
6
# File 'app/helpers/biological_associations_graphs_helper.rb', line 3

def biological_associations_graph_tag(biological_associations_graph)
  return nil if biological_associations_graph.nil?
  biological_associations_graph.name ||'Nameless graph. id: ' + biological_associations_graph.to_param 
end