aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/connection_specification.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-04-03 06:19:18 +1030
committerMatthew Draper <matthew@trebex.net>2014-04-03 06:19:18 +1030
commitad1415381e4d6a74ac418b1bf4ba042b1f369765 (patch)
tree4a19eab73cbf1eee4eca1d742d91ac4f2ef2cf8b /activerecord/lib/active_record/connection_adapters/connection_specification.rb
parent88e60a48ec7f3447225e9f5e47a251d6e1af78e2 (diff)
downloadrails-ad1415381e4d6a74ac418b1bf4ba042b1f369765.tar.gz
rails-ad1415381e4d6a74ac418b1bf4ba042b1f369765.tar.bz2
rails-ad1415381e4d6a74ac418b1bf4ba042b1f369765.zip
Avoid including DB details in exception messages
The keys are quite sufficient; we shouldn't be throwing passwords around.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/connection_specification.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/connection_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb
index 09ef0f389a..d60d31eda4 100644
--- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb
+++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb
@@ -227,7 +227,7 @@ module ActiveRecord
if config = configurations[spec.to_s]
resolve_connection(config)
else
- raise(AdapterNotSpecified, "'#{spec}' database is not configured. Available configuration: #{configurations.inspect}")
+ raise(AdapterNotSpecified, "'#{spec}' database is not configured. Available: #{configurations.keys.inspect}")
end
end