fix default_connection connecting to db for config on cloud mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user