Module: ActsAsTaggableOn

Defined in:
lib/acts-as-taggable-on.rb,
lib/acts_as_taggable_on/tag.rb,
lib/acts_as_taggable_on/utils.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/tag_list.rb,
lib/acts_as_taggable_on/taggable.rb,
lib/acts_as_taggable_on/tags_helper.rb

Defined Under Namespace

Modules: Compatibility, Taggable, Tagger, TagsHelper, Utils Classes: Configuration, Engine, Tag, TagList, Tagging

Constant Summary

VERSION =
'3.1.0.rc1'

Class Method Summary collapse

Class Method Details

.glueObject



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

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



14
15
16
17
# File 'lib/acts-as-taggable-on.rb', line 14

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)


19
20
21
# File 'lib/acts-as-taggable-on.rb', line 19

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

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

Yields:

  • (@configuration)


9
10
11
12
# File 'lib/acts-as-taggable-on.rb', line 9

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