Class: ActsAsTaggableOnMongoid::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_taggable_on_mongoid/configuration.rb

Overview

:reek:UtilityFunction :reek:Attribute :reek:TooManyInstanceVariables

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



83
84
85
86
87
88
89
90
91
92
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 83

def initialize
  @force_lowercase    = false
  @force_parameterize = false
  @preserve_tag_order = false
  @remove_unused_tags = false
  @tags_counter       = true
  @default_parser     = ActsAsTaggableOnMongoid::DefaultParser
  @tags_table         = ActsAsTaggableOnMongoid::Models::Tag
  @taggings_table     = ActsAsTaggableOnMongoid::Models::Tagging
end

Instance Attribute Details

#default_parserObject

Returns the value of attribute default_parser.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def default_parser
  @default_parser
end

#force_lowercaseObject Also known as: force_lowercase?

Returns the value of attribute force_lowercase.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def force_lowercase
  @force_lowercase
end

#force_parameterizeObject Also known as: force_parameterize?

Returns the value of attribute force_parameterize.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def force_parameterize
  @force_parameterize
end

#preserve_tag_orderObject Also known as: preserve_tag_order?

Returns the value of attribute preserve_tag_order.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def preserve_tag_order
  @preserve_tag_order
end

#remove_unused_tagsObject Also known as: remove_unused_tags?

Returns the value of attribute remove_unused_tags.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def remove_unused_tags
  @remove_unused_tags
end

#taggings_tableObject

Returns the value of attribute taggings_table.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def taggings_table
  @taggings_table
end

#tags_tableObject

Returns the value of attribute tags_table.



43
44
45
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43

def tags_table
  @tags_table
end

Instance Method Details

#strict_case_matchObject Also known as: strict_case_match?



57
58
59
60
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 57

def strict_case_match
  Mongoid.logger.warn "strict_case_match= is not supported."
  nil
end

#strict_case_match=(_value) ⇒ Object



69
70
71
72
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 69

def strict_case_match=(_value)
  Mongoid.logger.warn "strict_case_match= is not supported."
  nil
end

#tags_counterObject Also known as: tags_counter?

For duck compatibility with ActsAsTaggableOn. Do not use.



52
53
54
55
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 52

def tags_counter
  Mongoid.logger.warn "tags_counter is not supported."
  nil
end

#tags_counter=(_value) ⇒ Object

rubocop:disable Lint/Void



64
65
66
67
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 64

def tags_counter=(_value)
  Mongoid.logger.warn "tags_counter is not supported."
  nil
end