You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the member set on the options OpenStruct is redis-host which is not a valid Ruby identifier. It thus has to be accessed as options['redis-host']. Even worse on Ruby 1.9 - if one still wishes to support that - OpenStruct does not implement []. So one has to resort to options.send('redis-host').
I'd suggest to always also set redis_host, i.e. the option name with hyphens replaced by underscores, so that multi word options can be accessed as options.redis_host
The text was updated successfully, but these errors were encountered:
When declaring options like
the member set on the
options
OpenStruct isredis-host
which is not a valid Ruby identifier. It thus has to be accessed asoptions['redis-host']
. Even worse on Ruby 1.9 - if one still wishes to support that - OpenStruct does not implement[]
. So one has to resort tooptions.send('redis-host')
.I'd suggest to always also set
redis_host
, i.e. the option name with hyphens replaced by underscores, so that multi word options can be accessed asoptions.redis_host
The text was updated successfully, but these errors were encountered: