We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c89cbc commit 2c0daf6Copy full SHA for 2c0daf6
lib/view_component/global_config.rb
@@ -1,3 +1,3 @@
1
module ViewComponent
2
- 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
3
end
0 commit comments