mirror of https://github.com/rails/rails
Fix "warning: instance variable @db_config not initialized"
This commit is contained in:
parent
98754de141
commit
70013af6d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue