method
spec
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver
spec()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/connection_specification.rb, line 26
def spec
case config
when nil
raise AdapterNotSpecified unless defined?(Rails.env)
resolve_string_connection Rails.env
when Symbol, String
resolve_string_connection config.to_s
when Hash
resolve_hash_connection config
end
end