diff --git a/app/views/spree/admin/authentication_methods/_form.html.erb b/app/views/spree/admin/authentication_methods/_form.html.erb
index c46f7592..74381a3c 100644
--- a/app/views/spree/admin/authentication_methods/_form.html.erb
+++ b/app/views/spree/admin/authentication_methods/_form.html.erb
@@ -5,7 +5,7 @@
<%= label_tag nil, Spree.t(:environment) %>
- <%= collection_select :authentication_method, :environment, Rails.configuration.database_configuration.keys, :to_s, :titleize, {}, class: 'select2' %>
+ <%= collection_select :authentication_method, :environment, ActiveRecord::Base.configurations.keys, :to_s, :titleize, {}, class: 'select2' %>