app/models/taxonomy_term.rb in daengine-0.3.1 vs app/models/taxonomy_term.rb in daengine-0.3.2
- old
+ new
@@ -23,6 +23,10 @@
def self.purge!
TaxonomyTerm.destroy_all
end
+ def self.label_for_term(term_id)
+ where(term_id: term_id).try(:first).try(:label)
+ end
+
end