Module: ActsAsTaggableOn::Taggable::Collection

Defined in:
lib/acts_as_taggable_on/taggable/collection.rb

Defined Under Namespace

Modules: CalculationMethods, ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
# File 'lib/acts_as_taggable_on/taggable/collection.rb', line 6

def self.included(base)
  base.extend ActsAsTaggableOn::Taggable::Collection::ClassMethods
  base.initialize_acts_as_taggable_on_collection
end

Instance Method Details

#tag_counts_on(context, options = {}) ⇒ Object



204
205
206
# File 'lib/acts_as_taggable_on/taggable/collection.rb', line 204

def tag_counts_on(context, options = {})
  self.class.tag_counts_on(context, options.merge(id: id))
end