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