diff --git a/lib/view_component/global_config.rb b/lib/view_component/global_config.rb index cb2e69c27..cbe8b0b70 100644 --- a/lib/view_component/global_config.rb +++ b/lib/view_component/global_config.rb @@ -1,3 +1,3 @@ module ViewComponent - GlobalConfig = defined?(Rails) && Rails.application ? Rails.application.config.view_component : Base.config + GlobalConfig = (defined?(Rails) && Rails.application) ? Rails.application.config.view_component : Base.config # standard:disable Naming/ConstantName end