Module: ContextualConfig::Concern::Configurable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/contextual_config/concern/configurable.rb
Instance Method Summary collapse
-
#active? ⇒ Boolean
Helper to quickly check if a configuration is currently active.
-
#module_configuration ⇒ Object
Get the module configuration for this model if available.
Instance Method Details
#active? ⇒ Boolean
Helper to quickly check if a configuration is currently active
98 99 100 |
# File 'lib/contextual_config/concern/configurable.rb', line 98 def active? deleted_at.nil? end |
#module_configuration ⇒ Object
Get the module configuration for this model if available
103 104 105 |
# File 'lib/contextual_config/concern/configurable.rb', line 103 def module_configuration ContextualConfig.registry.configs_for_model(self.class).first end |