make existing YAML dependency explicit
(the ActiveRecord tests always have YAML loaded already, but what about when you're not running the ActiveRecord tests?)
This commit is contained in:
parent
9be69424dc
commit
307f1ca4ce
|
@ -1,3 +1,5 @@
|
|||
require 'yaml'
|
||||
|
||||
def db_config
|
||||
config_path = 'db/config.yml'
|
||||
@db_config ||= YAML.load(IO.read(config_path))
|
||||
|
|
Loading…
Reference in New Issue