app/models/taxonomy_term.rb in daengine-0.3.8.4 vs app/models/taxonomy_term.rb in daengine-0.3.9

- old
+ new

@@ -27,9 +27,13 @@ def self.label_for_term(term_id) where(term_id: term_id).try(:first).try(:label) if term_id end + def fund_code + term_type['FUND_CODE'] + end + def ancestor?(term) if(parent_term) (parent_term == term) or parent_term.ancestor?(term) else false