Class: ActsAsTaggableOnMongoid::Configuration
- Inherits:
-
Object
- Object
- ActsAsTaggableOnMongoid::Configuration
- Defined in:
- lib/acts_as_taggable_on_mongoid/configuration.rb
Overview
:reek:UtilityFunction :reek:Attribute :reek:TooManyInstanceVariables
Instance Attribute Summary collapse
-
#default_parser ⇒ Object
Returns the value of attribute default_parser.
-
#force_lowercase ⇒ Object
(also: #force_lowercase?)
Returns the value of attribute force_lowercase.
-
#force_parameterize ⇒ Object
(also: #force_parameterize?)
Returns the value of attribute force_parameterize.
-
#preserve_tag_order ⇒ Object
(also: #preserve_tag_order?)
Returns the value of attribute preserve_tag_order.
-
#remove_unused_tags ⇒ Object
(also: #remove_unused_tags?)
Returns the value of attribute remove_unused_tags.
-
#taggings_table ⇒ Object
Returns the value of attribute taggings_table.
-
#tags_table ⇒ Object
Returns the value of attribute tags_table.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #strict_case_match ⇒ Object (also: #strict_case_match?)
- #strict_case_match=(_value) ⇒ Object
-
#tags_counter ⇒ Object
(also: #tags_counter?)
For duck compatibility with ActsAsTaggableOn.
-
#tags_counter=(_value) ⇒ Object
rubocop:disable Lint/Void.
Constructor Details
#initialize ⇒ Configuration
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_parser ⇒ Object
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_lowercase ⇒ Object 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_parameterize ⇒ Object 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_order ⇒ Object 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_tags ⇒ Object Also known as:
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 end |
#taggings_table ⇒ Object
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_table ⇒ Object
Returns the value of attribute tags_table.
43 44 45 |
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 43 def @tags_table end |
Instance Method Details
#strict_case_match ⇒ Object 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_counter ⇒ Object Also known as:
For duck compatibility with ActsAsTaggableOn. Do not use.
52 53 54 55 |
# File 'lib/acts_as_taggable_on_mongoid/configuration.rb', line 52 def 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 (_value) Mongoid.logger.warn "tags_counter is not supported." nil end |