Module: Cms::Behaviors::Taggable::ClassMethods

Defined in:
lib/cms/behaviors/taggable.rb

Instance Method Summary collapse

Instance Method Details

#tag_cloudObject



33
34
35
# File 'lib/cms/behaviors/taggable.rb', line 33

def tag_cloud
  Cms::Tagging.cloud(base_class.name)
end

#tag_separatorObject



37
38
39
# File 'lib/cms/behaviors/taggable.rb', line 37

def tag_separator
  @tag_separator
end

#tagged_with(t) ⇒ Object



29
30
31
# File 'lib/cms/behaviors/taggable.rb', line 29

def tagged_with(t)
  where(["#{Cms::Tag.table_name}.name = ?", t]).includes(:taggings => :tag).references(:tags)
end