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/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/default_parser.rb,
lib/acts_as_taggable_on/generic_parser.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 =
'8.1.1'
Class Method Summary
collapse
Class Method Details
.glue ⇒ Object
58
59
60
61
62
|
# File 'lib/acts-as-taggable-on.rb', line 58
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
49
50
51
52
|
# File 'lib/acts-as-taggable-on.rb', line 49
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
54
55
56
|
# File 'lib/acts-as-taggable-on.rb', line 54
def self.respond_to?(method_name, include_private=false)
@configuration.respond_to? method_name
end
|
.setup {|@configuration| ... } ⇒ Object
44
45
46
47
|
# File 'lib/acts-as-taggable-on.rb', line 44
def self.setup
@configuration ||= Configuration.new
yield @configuration if block_given?
end
|