lib/sequel_rails/configuration.rb in sequel-rails-0.9.4 vs lib/sequel_rails/configuration.rb in sequel-rails-0.9.5

- old
+ new

@@ -31,10 +31,13 @@ def environment_for(name) environments[name.to_s] || environments[name.to_sym] end def environments - @environments ||= raw.reduce({}) do |normalized, environment| + @environments ||= raw.reduce( + # default config - use just the environment variable + Hash.new normalize_repository_config({}) + ) do |normalized, environment| name, config = environment.first, environment.last normalized[name] = normalize_repository_config(config) normalized end end