Displaying 1 result from an estimated 1 matches for "connectionspec".
Did you mean:
connection_spec
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...===============
--- connection_adapters/abstract/connection_specification.rb (revision 4617)
+++ connection_adapters/abstract/connection_specification.rb (working copy)
@@ -1,10 +1,21 @@
require ''set''
+require ''pp''
module ActiveRecord
class Base
class ConnectionSpecification #:nodoc:
attr_reader :config, :adapter_method
- def initialize (config, adapter_method)
+ def initialize (config, adapter_method = nil)
+ # If no adapter is found, try to devine it from the config.
+ # This was moved here from establish_connection since it''s...