Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set array value #35

Open
wvengen opened this issue Oct 31, 2014 · 0 comments
Open

Can't set array value #35

wvengen opened this issue Oct 31, 2014 · 0 comments
Labels

Comments

@wvengen
Copy link

wvengen commented Oct 31, 2014

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.

@Oshuma Oshuma added the bug label Dec 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants