method

build_configuration_sentence

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: DatabaseConfigurations
build_configuration_sentence() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.