collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

Fixed Context#fail! to accept context updates in a hash with string keys #102

Closed mingan closed 7 years ago

mingan commented 9 years ago

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.