configatron 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/configatron/rails.rb +2 -2
- metadata +1 -1
data/lib/configatron/rails.rb
CHANGED
@@ -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(
|
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
|
|