You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces a `ViewComponent::GlobalConfig` object that will be the source for global configuration going forward. Ideally in the future, this will only house options that universally affect ViewComponent regardless of whether components are sourced from an engine or not (e.g. enabling the capture compatibility patch), and more options can move to a component-local config. For these options, classes inheriting from `ViewComponent::Base` will want to override configuration themselves.
This was initially written to support extracting the incoming strict_helpers_enabled? option, but applies to everything.
class_option:preview_path,type: :string,desc: "Path for previews, required when multiple preview paths are configured",default: ViewComponent::Base.config.generate.preview_path
7
+
class_option:preview_path,type: :string,desc: "Path for previews, required when multiple preview paths are configured",default: ViewComponent::GlobalConfig.generate.preview_path
0 commit comments