instance method
build_configuration_sentence
Ruby on Rails 7.2.3
Since v6.1.7.10 PrivateSignature
build_configuration_sentence()
No documentation comment.
Source
# File activerecord/lib/active_record/database_configurations.rb, line 239
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
Defined in activerecord/lib/active_record/database_configurations.rb line 239
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConfigurations