We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caf1c68 commit 431140cCopy full SHA for 431140c
1 file changed
lib/jammit.rb
@@ -68,7 +68,7 @@ def self.load_configuration(config_path, soft=false)
68
conf = YAML.load(ERB.new(File.read(config_path)).result)
69
70
# Optionally overwrite configuration based on the environment.
71
- rails_env = defined?(Rails) ? Rails.env : RAILS_ENV
+ rails_env = defined?(Rails) ? Rails.env : ENV['RAILS_ENV']
72
conf.merge! conf.delete rails_env if conf.has_key? rails_env
73
74
@config_path = config_path
0 commit comments