Can't set array value
Opened this issue · 0 comments
wvengen commented
When setting a variable to an array like this:
AppConfig.BLACKLIST = ['foo', 'bar']
I get the following error:
lib/ruby/2.1.0/ostruct.rb:170:in `block in new_ostruct_member'
app_config-2.5.3/lib/app_config/storage/base.rb:17:in `method_missing'
app_config-2.5.3/lib/app_config.rb:66:in `method_missing'
Happens in base.rb#17.
Setting a non-array value AppConfig.BLACKLIST= 'foo'
does not give an error, but obviously does the wrong thing.