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 d60bec5 commit 9bd27dcCopy full SHA for 9bd27dc
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