Nope, tried that :D
blows up because it's modifying inside the each


On Wed, Mar 6, 2013 at 11:09 AM, osheroff <notifications@github.com> wrote:

> In lib/active_record_shards/configuration_parser.rb:
>
> > @@ -3,8 +3,7 @@ module ConfigurationParser
> >      module_function
> >
> >      def explode(conf)
> > -      conf.keys.each do |env_name|
> > -        env_config = conf[env_name]
> > +      conf.to_a.each do |env_name, env_config|
>
> no need for to_a here btw. Hash#each works the same.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/osheroff/active_record_shards/pull/20/files#r3267094>
> .
>