From a43e7e8967625b534b4158c5c01c52cd60ae9841 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Fri, 20 Dec 2024 10:23:52 +0100 Subject: [PATCH] Remove double negation logic --- lib/hotwire/spark/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hotwire/spark/engine.rb b/lib/hotwire/spark/engine.rb index 405b8bf..ff308a2 100644 --- a/lib/hotwire/spark/engine.rb +++ b/lib/hotwire/spark/engine.rb @@ -7,7 +7,7 @@ class Engine < ::Rails::Engine config.hotwire = ActiveSupport::OrderedOptions.new unless config.respond_to?(:hotwire) config.hotwire.spark = ActiveSupport::OrderedOptions.new config.hotwire.spark.merge! \ - enabled: Rails.env.development? && !defined?(Rails::Server).nil?, + enabled: Rails.env.development? && defined?(Rails::Server), css_paths: File.directory?("app/assets/builds") ? %w[ app/assets/builds ] : %w[ app/assets/stylesheets ], html_paths: %w[ app/controllers app/helpers app/models app/views ], stimulus_paths: %w[ app/javascript/controllers ]