Module: ActsAsTaggableOn::Taggable::Collection

Defined in:
lib/acts_as_taggable_on/acts_as_taggable_on/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/acts_as_taggable_on/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



167
168
169
# File 'lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb', line 167

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