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
ViewComponent::Base itself will always use the defaults. Any classes inheriting from ViewComponent::Base will cascade config down using InheritableOptions, only specifying any overrides.
Generate options being on their own "layer of config is currently unresolved - it might be that config needs to be a new object inheriting from InheritableOptions that has method accessors for everything in that namespace.
It seems like this solution is now applicable to everything, not just strict_helper_enabled?
refuteViewComponent::Base.config.strict_helpers_enabled?,".strict_helpers_enabled? should not be changed by global config for ViewComponent::Base"
165
+
# refute ViewComponent::Base.new.config.strict_helpers_enabled?, "#strict_helpers_enabled? should not be changed by global config for ViewComponent::Base"
166
+
asserttop_level_component_class.config.strict_helpers_enabled?,".strict_helpers_enabled? should inherit from global config"
167
+
asserttop_level_component_class.new.config.strict_helpers_enabled?,"#strict_helpers_enabled? should inherit from global config"
0 commit comments