foremancommunity-templatesforeman_api
Fixes #19700 - update rubocop rules
The following changes have been made:
- Performance/RedundantMerge:changes lines such as:```not_found_message.merge! :message => options```to:```not_found_message[:message] = options```
- converts str.match() to str =~ ()...
fixes #19528 - rewrite FiltersHelperOverrides to support autoload
Replaces class-level filter search overrides storage with a queryagainst Foreman::Plugin, allowing the class to be reloaded and testedsafely. Removes another 'registry' class.
refs #19317 - move FiltersHelperOverrides to app/registries/
Uses class to hold state, should be kept in the autoload_once registrydirectory.
fixes #19464 - rewrite Dashboard::Manager to support autoloading
Replaces class-level widget storage with a static list of built-inwidgets, then appends the registered plugin widgets to get the fulldefault list of widgets. As a result, the class can safely be reloaded...
fixes #19317, #10927 - move registries to autoload_once path
Partially reverts 70ce8fe to reinstate autoload_once_paths as thepreferred way to load registry-type objects with class variablescontaining data set up during app initialisation (e.g. pluginregistrations, menu items.)...
View revisions
Also available in: Atom