Class: Taxonomite::Configuration
- Inherits:
-
Object
- Object
- Taxonomite::Configuration
- Extended by:
- Configurable
- Defined in:
- lib/taxonomite/taxonomite_configuration.rb
Overview
The configuration class for Taxonomite gem. All classes which are configured via this mechanism should extend Taxonomite::Configured (below).
Instance Attribute Summary collapse
-
#default_taxonomy_require_both ⇒ Object
Returns the value of attribute default_taxonomy_require_both.
-
#use_tree_model ⇒ Object
future versions may extend to using different tree models - for now uses a custom tree model (:self).
Class Method Summary collapse
Methods included from Configurable
Instance Attribute Details
#default_taxonomy_require_both ⇒ Object
Returns the value of attribute default_taxonomy_require_both.
45 46 47 |
# File 'lib/taxonomite/taxonomite_configuration.rb', line 45 def default_taxonomy_require_both @default_taxonomy_require_both end |
#use_tree_model ⇒ Object
future versions may extend to using different tree models
-
for now uses a custom tree model (:self)
44 45 46 |
# File 'lib/taxonomite/taxonomite_configuration.rb', line 44 def use_tree_model @use_tree_model end |
Class Method Details
.create_configuration ⇒ Object
38 39 40 |
# File 'lib/taxonomite/taxonomite_configuration.rb', line 38 def self.create_configuration Taxonomite::Configuration.new end |