<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -125,7 +125,8 @@ module StateMachine
     # 
     # A collection of the generated edges will be returned.
     def draw(graph)
-      guards.collect {|guard| guard.draw(graph, name, machine.states.keys)}.flatten
+      valid_states = machine.states_order
+      guards.collect {|guard| guard.draw(graph, name, valid_states)}.flatten
     end
     
     protected</diff>
      <filename>lib/state_machine/event.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9915a9b331349b35d32132dd9982ee040acd523b</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </author>
  <url>http://github.com/pluginaweek/state_machine/commit/7878b67bf9a315bcb305cf5cf38ff818a939bb34</url>
  <id>7878b67bf9a315bcb305cf5cf38ff818a939bb34</id>
  <committed-date>2008-12-28T13:00:09-08:00</committed-date>
  <authored-date>2008-12-28T13:00:09-08:00</authored-date>
  <message>Draw transitions based on states order when using :except_to / :except_from to help guide GraphViz</message>
  <tree>28ce627460762f576af5e5c171711312481f2a36</tree>
  <committer>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </committer>
</commit>
