Skip to content

Commit

Permalink
[#525 state:resolved] transition functions should not die so hard if
Browse files Browse the repository at this point in the history
there's no transition for the state.
  • Loading branch information
bryanlarsen committed Nov 5, 2009
1 parent 320c664 commit 8e0c77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/lifecycles/lifecycle.rb
Expand Up @@ -126,7 +126,7 @@ def can_transition?(name, user)

def transition(name, user, attributes)
transition = find_transition(name, user)
transition.run!(record, user, attributes)
transition.run!(record, user, attributes) unless transition.nil?
end


Expand Down

0 comments on commit 8e0c77a

Please sign in to comment.