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



3
4
5
6
# File 'lib/acts_as_taggable_on/taggable/collection.rb', line 3

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



169
170
171
# File 'lib/acts_as_taggable_on/taggable/collection.rb', line 169

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