configatron 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/configatron/rails.rb +2 -2
  2. metadata +1 -1
@@ -16,10 +16,10 @@ class Configatron
16
16
  # <RAILS_ROOT>/config/configatron/<RAILS_ENV>/defaults.rb
17
17
  # <RAILS_ROOT>/config/configatron/<RAILS_ENV>/bar.rb
18
18
  # <RAILS_ROOT>/config/configatron/<RAILS_ENV>/foo.rb
19
- def self.init
19
+ def self.init(root = RAILS_ROOT)
20
20
  config_files = []
21
21
 
22
- base_dir = File.expand_path(File.join(RAILS_ROOT, 'config', 'configatron'))
22
+ base_dir = File.expand_path(File.join(root, 'config', 'configatron'))
23
23
  config_files << File.join(base_dir, 'defaults.rb')
24
24
  config_files << File.join(base_dir, "#{RAILS_ENV}.rb")
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configatron
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates