app/models/taxonomy_term.rb in daengine-0.2.18 vs app/models/taxonomy_term.rb in daengine-0.2.19
- old
+ new
@@ -2,9 +2,11 @@
class TaxonomyTerm
include Mongoid::Document
include Mongoid::Timestamps
+ cache # cache all calls to the taxonomy terms, they don't change much
+
field :label, type: String
field :term_id, type: String
field :term_type, :type => Hash, :default => {}
key :term_id