Method: Rails::Application::Configuration#ignore_extensions
- Defined in:
- lib/configuration_extensions/configuration_extensions.rb
#ignore_extensions(array) ⇒ Object
This is a configurable list of extension that should not be loaded.
config.ignore_extensions = [:experimental, :broken]
You can also retrieve the list with ignored_extensions:
TrustyCms.configuration.ignored_extensions # => [:experimental, :broken]
These exclusions are applied regardless of dependencies and extension locations. A configuration that bundles required extensions then ignores them will not boot and is likely to fail with errors about unitialized constants.
175 176 177 |
# File 'lib/configuration_extensions/configuration_extensions.rb', line 175 def ignore_extensions(array) self.ignored_extensions |= array end |