Oshuma / app_config

Simple Ruby framework-agnostic application configuration.
http://oshuma.github.io/app_config/
MIT License
20 stars 7 forks source link

Can't set array value #35

Open wvengen opened 9 years ago

wvengen commented 9 years ago

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.