Module: ActsAsTaggableOn

Extended by:
ActiveSupport::Autoload
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/tagger.rb,
lib/acts_as_taggable_on/engine.rb,
lib/acts_as_taggable_on/tagging.rb,
lib/acts_as_taggable_on/version.rb,
lib/acts_as_taggable_on/taggable.rb,
lib/acts_as_taggable_on/tag_list.rb,
lib/acts_as_taggable_on/tags_helper.rb,
lib/acts_as_taggable_on/generic_parser.rb,
lib/acts_as_taggable_on/default_parser.rb,
lib/acts_as_taggable_on/tag_list_parser.rb

Overview

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

Defined Under Namespace

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

Constant Summary

VERSION =
'3.5.0'

Class Method Summary collapse

Class Method Details

.glueObject



53
54
55
56
57
# File 'lib/acts-as-taggable-on.rb', line 53

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

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



44
45
46
47
# File 'lib/acts-as-taggable-on.rb', line 44

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)


49
50
51
# File 'lib/acts-as-taggable-on.rb', line 49

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

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

Yields:

  • (@configuration)


39
40
41
42
# File 'lib/acts-as-taggable-on.rb', line 39

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