lib/simple_state/mixins.rb in anthonyw-simple_state-0.1.3 vs lib/simple_state/mixins.rb in anthonyw-simple_state-0.2.0
- old
+ new
@@ -40,10 +40,10 @@
def _determine_new_state(current, to)
states[current] && (t = states[current].assoc(to)) && t.last
end
# @api private
- def _valid_transition?(current, to)
+ def _event_permitted?(current, to)
states[current] and not states[current].assoc(to).nil?
end
end
##