Module: ConfigurationsHelper
- Defined in:
- app/helpers/configurations_helper.rb
Instance Method Summary (collapse)
-
- (Object) all_configurations
collects all configurations from registered configurators, including ones set in the database, default values (as new Configuration objects) and ad-hoc values that do not exist in the definition.
-
- (Object) deprecated_configurations
collects all plugins that appear to use the old method of configuration, using a yaml file.
Instance Method Details
- (Object) all_configurations
collects all configurations from registered configurators, including ones set in the database, default values (as new Configuration objects) and ad-hoc values that do not exist in the definition
6 7 8 |
# File 'app/helpers/configurations_helper.rb', line 6 def all_configurations Core::Configurator.configurables.collect(&:settings).flatten.sort_by(&:name) end |
- (Object) deprecated_configurations
collects all plugins that appear to use the old method of configuration, using a yaml file
12 13 14 15 16 |
# File 'app/helpers/configurations_helper.rb', line 12 def deprecated_configurations (Plugins::Export.included_modules + Plugins::Import.included_modules + Plugins::Upload.included_modules).select(&:uses_deprecated_config?).sort_by(&:to_s) end |