jmettraux / ruote

a ruby workflow engine (dead)
MIT License
496 stars 74 forks source link

Deep merge workitem #44

Closed marsbomber closed 12 years ago

marsbomber commented 12 years ago

When concurrence workitems are returned on a union strategy, may might want to use deep_merge from active_support instead of ruby hash merge (https://github.com/jmettraux/ruote/blob/master/lib/ruote/exp/merge.rb#L113). In my project, this gave me the expected behaviours I was after.

jmettraux commented 12 years ago

As a note: http://rubydoc.info/docs/rails/2.3.8/ActiveSupport/CoreExtensions/Hash/DeepMerge#deep_merge-instance_method

jmettraux commented 12 years ago

Not tested at the functional level, please re-open if it's OK.

Cheers,

John