kenn / standby

Read from standby databases for ActiveRecord
MIT License
87 stars 28 forks source link

Custom slave spec name #3

Closed coryodaniel closed 10 years ago

coryodaniel commented 10 years ago

This is useful for deploying on EY where the slave spec name in database.yml is simpley "slave".

I made it so that it takes a string or a proc. The default is left to Slavery.env + "_slave"

Also added tests and documentation. Thanks for a great gem.

kenn commented 10 years ago

Awesome, thanks for the PR!

kenn commented 10 years ago

Made a little API changes, use Slavery.spec_key instead of Slavery.slave_spec_name.

Released as 1.4.0, thanks again!

coryodaniel commented 10 years ago

Awesome!— Sent from Mailbox for iPhone

On Mon, Mar 3, 2014 at 2:12 PM, Kenn Ejima notifications@github.com wrote:

Made a little API changes, use Slavery.spec_key instead of Slavery.slave_spec_name.

Released as 1.4.0, thanks again!

Reply to this email directly or view it on GitHub: https://github.com/kenn/slavery/pull/3#issuecomment-36566908