fix default_connection connecting to db for config on cloud mode

This commit is contained in:
Thein Lin Kyaw
2022-02-18 13:37:17 +06:30
parent 02bd167fe3
commit c184277a30

View File

@@ -68,7 +68,7 @@ class ActionController::Base
# Regular database.yml configuration hash
def default_connection
@default_config ||= ActiveRecord::Base.connection.instance_variable_get("@config").dup
@default_config ||= ActiveRecord::Base.connection_config
end
#change locallization