Module: Taggable::Asset

Defined in:
lib/taggable/asset.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/taggable/asset.rb', line 4

def self.included(base)
  base.class_eval {
    has_tags
    named_scope :furniture, {:conditions => 'assets.furniture = 1'}
    named_scope :not_furniture, {:conditions => 'assets.furniture = 0 or assets.furniture is null'}

    extend Taggable::Asset::ClassMethods
    include Taggable::Asset::InstanceMethods
  }
end