app/models/account.rb in has_accounts-1.0.1 vs app/models/account.rb in has_accounts-1.0.2

- old
+ new

@@ -45,9 +45,17 @@ # Tagging # ======= acts_as_taggable attr_accessible :tag_list + def self.default_tags + ['invoice:debit', 'invoice:earnings', 'invoice:credit', 'invoice:costs', 'vat:credit', 'vat:debit'] + end + + def self.tag_collection + (default_tags + Account.tag_counts.pluck(:name)).uniq + end + # Holder # ====== belongs_to :holder, :polymorphic => true # Bookings