diff options
author | Eric Wong <e@80x24.org> | 2013-10-29 00:55:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2013-10-29 02:37:05 +0000 |
commit | a08d148e3aecbf2f13d1357611385b10e4ce19de (patch) | |
tree | fc632ba18875841eed5c291136ff335824438566 /lib/yahns/config.rb | |
parent | 22d933a40c8535c09752a75033e45ad5f08fc520 (diff) | |
download | yahns-a08d148e3aecbf2f13d1357611385b10e4ce19de.tar.gz |
working_directory affects the whole process, so it must be called at the top-level and not allowed inside blocks.
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index 01fcac7..88af2de 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -135,7 +135,7 @@ class Yahns::Config # :nodoc: # for error checking and cannot be undone by unsetting it in the # configuration file and reloading. def working_directory(path) - var = :working_directory + var = _check_in_block(nil, :working_directory) @app_ctx.empty? or raise ArgumentError, "#{var} must be declared before any apps" |