```ruby
require "dotenv"
require "dotenv/deployment/version"

# Load defaults from .env or *.env in config
Dotenv.load '.env', *configs
Dotenv.load *Dir.glob("#{Rails.root}/config/**/*.env") if defined?(Rails)

# Override any existing variables if an environment-specific file exists
environment = ENV['RACK_ENV'] || (defined?(Rails) && Rails.env)
Dotenv.overload ".env.#{environment}"
Dotenv.overload *Dir.glob("#{Rails.root}/config/**/*.env.#{environment}") if defined?(Rails)
```

Remove an odd local variable
user
```ruby
require "dotenv"
require "dotenv/deployment/version"

# Load defaults from .env or *.env in config
Dotenv.load '.env'
Dotenv.load *Dir.glob("#{Rails.root}/config/**/*.env") if defined?(Rails)

# Override any existing variables if an environment-specific file exists
environment = ENV['RACK_ENV'] || (defined?(Rails) && Rails.env)
Dotenv.overload ".env.#{environment}"
Dotenv.overload *Dir.glob("#{Rails.root}/config/**/*.env.#{environment}") if defined?(Rails)
```
assistant