method
build_configuration_sentence
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations
build_configuration_sentence()private
No documentation available.
# File activerecord/lib/active_record/database_configurations.rb, line 187
def build_configuration_sentence
configs = configs_for(include_hidden: true)
configs.group_by(&:env_name).map do |env, config|
names = config.map(&:name)
if names.size > 1
"#{env}: #{names.join(", ")}"
else
env
end
end.join("\n")
end