Context is initialized by a hash. Internally it's implemented by OpenStruct which takes care of handling string/symbol keys. Context#fail! takes an optional hash of context updates which assumes all keys are symbols. Not a big problem but a small inconsistency. This change converts all keys to symbols before updating the context.
Context is initialized by a hash. Internally it's implemented by OpenStruct which takes care of handling string/symbol keys.
Context#fail!
takes an optional hash of context updates which assumes all keys are symbols. Not a big problem but a small inconsistency. This change converts all keys to symbols before updating the context.