style: correct coding style with rubocop linter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user