Module: ActsAsTaggableOn

Defined in:
lib/acts-as-taggable-on/utils.rb,
lib/acts-as-taggable-on.rb,
lib/acts-as-taggable-on/tag.rb,
lib/acts-as-taggable-on/engine.rb,
lib/acts-as-taggable-on/tagger.rb,
lib/acts-as-taggable-on/tagging.rb,
lib/acts-as-taggable-on/version.rb,
lib/acts-as-taggable-on/tag_list.rb,
lib/acts-as-taggable-on/taggable.rb,
lib/acts-as-taggable-on/tags_helper.rb,
lib/acts-as-taggable-on/taggable/core.rb,
lib/acts-as-taggable-on/default_parser.rb,
lib/acts-as-taggable-on/generic_parser.rb,
lib/acts-as-taggable-on/taggable/caching.rb,
lib/acts-as-taggable-on/taggable/related.rb,
lib/acts-as-taggable-on/taggable/ownership.rb,
lib/acts-as-taggable-on/taggable/collection.rb,
lib/acts-as-taggable-on/taggable/tag_list_type.rb,
lib/acts-as-taggable-on/taggable/tagged_with_query.rb,
lib/acts-as-taggable-on/taggable/tagged_with_query/query_base.rb,
lib/acts-as-taggable-on/taggable/tagged_with_query/all_tags_query.rb,
lib/acts-as-taggable-on/taggable/tagged_with_query/any_tags_query.rb,
lib/acts-as-taggable-on/taggable/tagged_with_query/exclude_tags_query.rb

Overview

This module is deprecated and will be removed in the incoming versions

Defined Under Namespace

Modules: Taggable, Tagger, TagsHelper, Utils Classes: Configuration, DefaultParser, DuplicateTagError, Engine, GenericParser, Tag, TagList, Tagging

Constant Summary collapse

VERSION =
'11.0.0'

Class Method Summary collapse

Class Method Details

.glueObject



36
37
38
39
40
# File 'lib/acts-as-taggable-on.rb', line 36

def self.glue
  setting = @configuration.delimiter
  delimiter = setting.kind_of?(Array) ? setting[0] : setting
  delimiter.end_with?(' ') ? delimiter : "#{delimiter} "
end

.method_missing(method_name, *args, &block) ⇒ Object



27
28
29
30
# File 'lib/acts-as-taggable-on.rb', line 27

def self.method_missing(method_name, *args, &block)
  @configuration.respond_to?(method_name) ?
      @configuration.send(method_name, *args, &block) : super
end

.respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/acts-as-taggable-on.rb', line 32

def self.respond_to?(method_name, include_private=false)
  @configuration.respond_to? method_name
end

.setup {|@configuration| ... } ⇒ Object

Yields:

  • (@configuration)


22
23
24
25
# File 'lib/acts-as-taggable-on.rb', line 22

def self.setup
  @configuration ||= Configuration.new
  yield @configuration if block_given?
end