adds valuator tags

This commit is contained in:
rgarcia
2017-01-08 13:24:05 +01:00
parent fd28f6c2b3
commit 3ba57bbab2
6 changed files with 82 additions and 16 deletions

View File

@@ -42,10 +42,6 @@ module ActsAsTaggableOn
ActsAsTaggableOn::Tag.where('taggings.taggable_type' => 'SpendingProposal').includes(:taggings).order(:name).uniq
end
def self.budget_investment_tags
ActsAsTaggableOn::Tag.where('taggings.taggable_type' => 'Budget::Investment').includes(:taggings).order(:name).uniq
end
private
def custom_counter_field_name_for(taggable_type)
"#{taggable_type.underscore.pluralize}_count"