SpeciesFileGroup/taxonworks

View on GitHub
app/helpers/gene_attributes_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module GeneAttributesHelper
  def gene_attribute_tag(gene_attribute)
    return nil if gene_attribute.nil?
    gene_attribute.id.to_s
  end

  def gene_attributes_search_form
    render('/gene_attributes/quick_search_form')
  end

  def gene_attribute_link(gene_attribute)
    return nil if gene_attribute.nil?
    link_to(gene_attribute_tag(gene_attribute).html_safe, gene_attribute)
  end
end