style: correct coding style with rubocop linter

This commit is contained in:
kbe
2025-09-05 12:02:44 +02:00
parent 46c8faf10c
commit 15e3c7dff5
40 changed files with 121 additions and 1663 deletions

View File

@@ -1,10 +1,10 @@
Rails.application.configure do
# Load environment variables from .env file if dotenv is not available
env_file = Rails.root.join('.env')
env_file = Rails.root.join(".env")
if File.exist?(env_file) && !defined?(Dotenv)
File.readlines(env_file).each do |line|
next if line.strip.empty? || line.start_with?('#')
key, value = line.split('=', 2)
next if line.strip.empty? || line.start_with?("#")
key, value = line.split("=", 2)
ENV[key.strip] = value.strip if key && value
end
end
@@ -37,4 +37,4 @@ Rails.application.configure do
else
Rails.logger.warn "Stripe secret key not found - Stripe will not be initialized"
end
end
end