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
1 changed files with 1 additions and 1 deletions

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