lib/slavery.rb in slavery-1.4.0 vs lib/slavery.rb in slavery-1.4.1
- old
+ new
@@ -94,10 +94,10 @@
spec = [Slavery.spec_key, Slavery.env].find do |spec_key|
ActiveRecord::Base.configurations[spec_key]
end or raise Error.new("#{Slavery.spec_key} or #{Slavery.env} must exist!")
- establish_connection spec
+ establish_connection spec.to_sym
}
end
end
end