Module: TaggableModel

Defined in:
lib/taggable_model.rb

Overview

for inclusion into ActiveRecord::Base

Defined Under Namespace

Modules: ClassMethods, TaggableClassMethods, TaggableInstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/taggable_model.rb', line 3

def self.included(base)
  base.extend ClassMethods
  base.class_eval {
    @@taggable_models = []
    cattr_accessor :taggable_models
  }
end