Permalink
Browse files

DRYed up a bit

  • Loading branch information...
1 parent 75496a2 commit 111f64621e5e6d938e98b351cc92d33d469a00f4 @Hakon Hakon committed Aug 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/workflow.rb
View
2 lib/workflow.rb
@@ -174,7 +174,7 @@ def process_event!(name, *args)
from = current_state
to = spec.states[event.transitions_to]
- run_before_transition(current_state, spec.states[event.transitions_to], name, *args)
+ run_before_transition(from, to, name, *args)
return false if @halted
return_value = run_action(event.action, *args) || run_action_callback(event.name, *args)

0 comments on commit 111f646

Please sign in to comment.