forked from pluginaweek/state_machine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAJOR REWRITE! Replace all before/after_exit/enter/loopback callback …
…hooks and :before/:after options for events with before_transition/after_transition callbacks Fix state machines in subclasses not knowing what states/events/transitions were defined by superclasses Don't use callbacks for performing transitions Add support for can_#{event}? for checking whether an event can be fired based on the current state of the record No longer allow additional arguments to be passed into event actions
- Loading branch information
Showing
16 changed files
with
1,242 additions
and
844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.