1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix "warning: instance variable @db_config not initialized"

This commit is contained in:
yuuji.yaginuma 2019-11-04 20:48:31 +09:00
parent 98754de141
commit 70013af6d9

View file

@ -94,7 +94,7 @@ module Rails
end
def db_config
return @db_config if @db_config
return @db_config if defined?(@db_config)
# We need to check whether the user passed the database the
# first time around to show a consistent error message to people