taskrabbit/makara — pull request #10 by justinbeal (2013-08-08 21:46:20+00:00)
Title: Registering adapters with the same ID no longer raises, but does not add...

This allows an adapter to be registered again without raising an error - beyond the first, subsequent attempts are silently discarded. There doesn't seem to be any value in raising the error beyond ensuring that the @adapters array contains only unique adapters. I noticed this when, in a setup with a master/slave postgresql pair, Makara seemed to try to register every time an ActiveRecord connection was made.