lib/statesmin/transition_helper.rb in statesmin-1.0.1 vs lib/statesmin/transition_helper.rb in statesmin-1.0.2
- old
+ new
@@ -14,10 +14,10 @@
end
RUBY
end
def transition_to!(next_state, data = {})
- raise_transition_not_defined_error unless respond_to?(:transition, false)
+ raise_transition_not_defined_error unless respond_to?(:transition, true)
state_machine.transition_to!(next_state, data) do
transition(next_state, data)
end
end