Yes, that works, will update


On 2 February 2014 15:58, Petr Chalupa <notifications@github.com> wrote:

> In lib/dynflow/action/run_phase.rb:
>
> > @@ -22,7 +22,13 @@ def execute(event)
> >          self.state = :running
> >          save_state
> >          with_error_handling do
> > -          result = catch(SUSPEND) { event ? run(event) : run }
> > +          result = catch(SUSPEND) do
> > +            args = []
> > +            args << event if event
> > +            world.middleware.execute(:run, self, *args) do |*new_args|
> > +              run(*new_args)
> > +            end
> > +          end
>
> sorry, it supposed to be
> could be simplified to:
>
> result = catch(SUSPENDED) do
>   world.middleware.execute(:run, self, *Array(event)) { |*args| run(*args) }end
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Dynflow/dynflow/pull/94/files#r9370174>
> .
>