Class: Decidim::Plans::Tag

Inherits:
ApplicationRecord show all
Defined in:
app/models/decidim/plans/tag.rb

Overview

A tag is a record that allows providing metadata for the items to be tagged, i.e. the “taggables”. In this context, only plans are taggable.

Instance Method Summary collapse

Instance Method Details

#plan_taggings_countObject



15
16
17
# File 'app/models/decidim/plans/tag.rb', line 15

def plan_taggings_count
  PlanTagging.where(tag: self).count
end