configatron 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
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