lib/capistrano/figaro_yml/helpers.rb in capistrano-figaro-yml-1.0.3 vs lib/capistrano/figaro_yml/helpers.rb in capistrano-figaro-yml-1.0.4

- old
+ new

@@ -5,10 +5,10 @@ module Helpers def local_figaro_yml(env) @local_figaro_yml ||= YAML.load(ERB.new(File.read(figaro_yml_local_path)).result) local_figaro = {} - deployment_env = fetch(:rails_env, env) + deployment_env = fetch(:rails_env, env).to_s @local_figaro_yml.each do |key, value| if key == env local_figaro[deployment_env] = @local_figaro_yml[key] elsif !value.is_a?(Hash)