Module: ClassificationHelper

Defined in:
frontend/app/helpers/classification_helper.rb

Class Method Summary collapse

Class Method Details

.format_classification(path_to_root) ⇒ Object



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

def self.format_classification(path_to_root)
  id_string = path_to_root.map {|node| node['identifier']}.join(I18n.t("classification.id_separator"))
  "#{id_string} #{path_to_root.last['title']}"
end