Module: ActsAsTaggableOnMongoid

Extended by:
ActiveSupport::Autoload
Defined in:
lib/acts-as-taggable-on-mongoid.rb,
lib/acts_as_taggable_on_mongoid/version.rb,
lib/acts_as_taggable_on_mongoid/tag_list.rb,
lib/acts_as_taggable_on_mongoid/taggable.rb,
lib/acts_as_taggable_on_mongoid/models/tag.rb,
lib/acts_as_taggable_on_mongoid/configuration.rb,
lib/acts_as_taggable_on_mongoid/taggable/core.rb,
lib/acts_as_taggable_on_mongoid/default_parser.rb,
lib/acts_as_taggable_on_mongoid/generic_parser.rb,
lib/acts_as_taggable_on_mongoid/models/tagging.rb,
lib/acts_as_taggable_on_mongoid/taggable/list_tags.rb,
lib/acts_as_taggable_on_mongoid/taggable/changeable.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_model.rb,
lib/acts_as_taggable_on_mongoid/errors/duplicate_tag_error.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_fields.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_scopes.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb,
lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition.rb,
lib/acts_as_taggable_on_mongoid/taggable/utils/tag_list_diff.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_model.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_fields.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_scopes.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_validations.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_methods.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tag_associations.rb,
lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_validations.rb,
lib/acts_as_taggable_on_mongoid/models/concerns/tagging_associations.rb,
lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/attributes.rb,
lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/changeable.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/all_tags_query.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/any_tags_query.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/exclude_tags_query.rb,
lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/match_all_tags_query.rb

Overview

require “active_support/core_ext/module/delegation”

Defined Under Namespace

Modules: Errors, Models, Taggable Classes: Configuration, DefaultParser, GenericParser, TagList

Constant Summary collapse

VERSION =
"6.0.1.5"

Class Method Summary collapse

Class Method Details

.configurationObject

rubocop:enable Metrics/BlockLength


83
84
85
# File 'lib/acts-as-taggable-on-mongoid.rb', line 83

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


87
88
89
# File 'lib/acts-as-taggable-on-mongoid.rb', line 87

def self.configure
  yield configuration if block_given?
end

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

:reek:ManualDispatch


92
93
94
# File 'lib/acts-as-taggable-on-mongoid.rb', line 92

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

.respond_to_missing?(method_name, _include_private = false) ⇒ Boolean

:reek:BooleanParameter :reek:ManualDispatch

Returns:

  • (Boolean)

98
99
100
# File 'lib/acts-as-taggable-on-mongoid.rb', line 98

def self.respond_to_missing?(method_name, _include_private = false)
  configuration.respond_to?(method_name) || super
end