Class: ActiveRecord::ConnectionHandling::MergeAndResolveDefaultUrlConfig
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionHandling::MergeAndResolveDefaultUrlConfig
- Defined in:
- lib/active_record/connection_handling.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(raw_configurations) ⇒ MergeAndResolveDefaultUrlConfig
constructor
A new instance of MergeAndResolveDefaultUrlConfig.
-
#resolve ⇒ Object
Returns fully resolved connection hashes.
Constructor Details
#initialize(raw_configurations) ⇒ MergeAndResolveDefaultUrlConfig
Returns a new instance of MergeAndResolveDefaultUrlConfig.
64 65 66 67 |
# File 'lib/active_record/connection_handling.rb', line 64 def initialize(raw_configurations) @raw_config = raw_configurations.dup @env = DEFAULT_ENV.call.to_s end |
Instance Method Details
#resolve ⇒ Object
Returns fully resolved connection hashes. Merges connection information from ‘ENV` if available.
71 72 73 |
# File 'lib/active_record/connection_handling.rb', line 71 def resolve ConnectionAdapters::ConnectionSpecification::Resolver.new(config).resolve_all end |