Closed bschmeck closed 8 years ago
Pushed a change to use the key's alias if there is one, otherwise just do a normal lookup.
Because aliases are keys in the context in their own right, this method could be removed and the standard Hash#[]
method could be used. But that causes a failing spec due to an inconsistency with aliases. Working on that in a separate branch.
Branch showing issues with context aliases is here: https://github.com/bschmeck/light-service/tree/context-alias-bugs
Diff is here: https://github.com/adomokos/light-service/compare/master...bschmeck:context-alias-bugs
Thank you! I won't release a new version until you (we) have a chance to resolve that alias bug. 👍
This change will make the tests pass:
I don't think this is the best solution, as it only makes assumptions on the values. What if the hash_value is set to nil?