method

build_configuration_sentence

Importance_0
v7.0.0 - Show latest stable - 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 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
Register or log in to add new notes.