democracyworks / hat-trick

Hat Trick - Rails wizards done right
MIT License
5 stars 0 forks source link

Don't loop past the last step when looking for the next one #6

Open cap10morgan opened 12 years ago

cap10morgan commented 12 years ago

When the Wizard#advance_step method gets to the last step, it should stop looping no matter what. Otherwise it could loop forever.

cap10morgan commented 12 years ago

Fixed by 16879c43cfcc23b72d42ddd850223a28fcbee0e0. Need to write a test to verify, though.