autoconfig 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autoconfig.rb +2 -1
- metadata +3 -3
data/lib/autoconfig.rb
CHANGED
@@ -15,7 +15,8 @@ String.send(:include, StringCamelize) unless String.instance_methods.include?("c
|
|
15
15
|
|
16
16
|
module AutoConfig
|
17
17
|
def self.root
|
18
|
-
|
18
|
+
rails_root = (rails? && (Rails.root || File.expand_path('../', ENV['BUNDLE_GEMFILE'])))
|
19
|
+
ENV['AUTOCONFIG_ROOT'] || ENV['APP_ROOT'] || rails_root || base_dir
|
19
20
|
end
|
20
21
|
|
21
22
|
def self.pattern
|
metadata
CHANGED