method
determine_owner_name
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionHandler
determine_owner_name(owner_name, config)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 356
def determine_owner_name(owner_name, config)
if owner_name.is_a?(String) || owner_name.is_a?(Symbol)
StringConnectionName.new(owner_name.to_s)
elsif config.is_a?(Symbol)
StringConnectionName.new(config.to_s)
else
owner_name
end
end