Module: ActsAsTaggableOn::Taggable::Core

Defined in:
lib/acts_as_taggable_on/acts_as_taggable_on/core.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/acts_as_taggable_on/acts_as_taggable_on/core.rb', line 3

def self.included(base)
  base.send :include, ActsAsTaggableOn::Taggable::Core::InstanceMethods
  base.extend ActsAsTaggableOn::Taggable::Core::ClassMethods

  base.class_eval do
    attr_writer :custom_contexts
    after_save :save_tags
  end

  base.initialize_acts_as_taggable_on_core
end