teespring-labs/active_record_replica

possible to allow salves via a url?

matthewford opened this issue · 1 comments

Hi,
Is it possible to connect to slaves via

  slave:
    adapter:   mysql2
    url: <%= ENV['DATABASE_SLAVE_URL'] %>

Im seeing this error NoMethodError: undefined method []' for nil:NilClass active_record_slave-1.3.0/lib/active_record_slave/active_record_slave.rb:20:in install!'

Yes, this should work with the latest code.