instance method build_configuration_sentence

Ruby on Rails 7.1.6

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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

Type at least 2 characters to search.

↑↓ navigate · open · esc close