Module: ActsAsTaggableOn::Taggable::Ownership

Defined in:
lib/acts_as_taggable_on/acts_as_taggable_on/ownership.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
# File 'lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb', line 3

def self.included(base)
  base.send :include, ActsAsTaggableOn::Taggable::Ownership::InstanceMethods
  base.extend ActsAsTaggableOn::Taggable::Ownership::ClassMethods
 
  base.class_eval do
    after_save :save_owned_tags    
  end
  
  base.initialize_acts_as_taggable_on_ownership
end