method

environment_value_for

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: DatabaseConfigurations
environment_value_for(name) 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 302
      def environment_value_for(name)
        name_env_key = "#{name.upcase}_DATABASE_URL"
        url = ENV[name_env_key]
        url ||= ENV["DATABASE_URL"] if name == "primary"
        url
      end
Register or log in to add new notes.