Flowdock
method

spec

Importance_1
v4.1.8 - Show latest stable - 0 notes - Class: Resolver
spec(config) public

Returns an instance of ConnectionSpecification for a given adapter. Accepts a hash one layer deep that contains all connection information.

Example

config = { "production" => { "host" => "localhost", "database" => "foo", "adapter" => "sqlite3" } }
spec = Resolver.new(config).spec(:production)
spec.adapter_method
# => "sqlite3"
spec.config
# => { "host" => "localhost", "database" => "foo", "adapter" => "sqlite3" }
Show source
Register or log in to add new notes.