projectzebra / Redcrumbs

Fast and unobtrusive activity tracking of ActiveRecord models using DataMapper and Redis.
13 stars 0 forks source link

Adds Support for Custom Connections #4

Closed JonMidhir closed 12 years ago

JonMidhir commented 12 years ago

Updates the support for custom connections to not just module-defined methods but to the DM-Redis Adapter instance. This was causing problems before as the adapter was using a default Redis connection instead of the one the user has specified.

This adds support for defining a custom redis connection in an initializer as either an instance of a connection or a string connection specification.