Skip to content

Commit 4e3a9ea

Browse files
authored
Prevent unnecessary doubled loading of environment variables (#291)
1 parent 33d0e65 commit 4e3a9ea

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Bug fixes
66

77
* Added alias to_h for to_hash ([#277](https://github.com/railsconfig/config/issues/277))
8+
* Prevent unnecessary doubled loading of environment variables ([#291](https://github.com/rubyconfig/config/pull/291))
89

910
### Changes
1011

lib/config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def self.load_files(*files)
4242
end
4343

4444
config.load!
45-
config.load_env! if use_env
4645
config
4746
end
4847

0 commit comments

Comments
 (0)