Skip to content

Commit

Permalink
Remove double negation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 20, 2024
1 parent 80b02d0 commit a43e7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hotwire/spark/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit a43e7e8

Please sign in to comment.